Skip to content

Commit 39438c7

Browse files
committed
unittest now also walks the ast
1 parent 490a32c commit 39438c7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/Parser.unittest.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,10 +471,11 @@ describe("Parser", () => {
471471
"await expression": "async function x(y) { await y }",
472472
"await iteration": "async function f() { for await (x of xs); }"
473473
};
474+
const parser = new Parser();
474475
Object.keys(cases).forEach((name) => {
475476
const expr = cases[name];
476477
it(name, () => {
477-
const actual = Parser.parse(expr);
478+
const actual = parser.parse(expr);
478479
should.strictEqual(typeof actual, "object");
479480
});
480481
});

0 commit comments

Comments
 (0)