Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wtetsu committed Jul 25, 2020
1 parent 9770d11 commit 5604d72
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .babelrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"presets": [
[
"@babel/env",
{
"targets": { "chrome": "79" }
}
],
["@babel/react"],
["@babel/typescript"]
]
}
14 changes: 14 additions & 0 deletions __test__/entries.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,20 @@ test("", () => {
])
);

expect(generateEntries("yelled at")).toEqual(
expect.arrayContaining([
"yell at", //
"yell",
])
);

expect(generateEntries("yelling at")).toEqual(
expect.arrayContaining([
"yell at", //
"yell",
])
);

expect(generateEntries("dealt dealt dealt")).toEqual(
expect.arrayContaining([
"dealt dealt dealt",
Expand Down
2 changes: 1 addition & 1 deletion __test__/transform.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ test("", () => {
expect(rule.doBase("run")).toEqual([]);
expect(rule.doBase("runs")).toEqual(["run"]);
expect(rule.doBase("ran")).toEqual(["run"]);
expect(rule.doBase("running")).toEqual(["run", "runne"]);
expect(rule.doBase("running")).toEqual(["run", "runne", "runn"]);
});

test("", () => {
Expand Down

0 comments on commit 5604d72

Please sign in to comment.