Skip to content

Commit

Permalink
unittest now also walks the ast
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed Feb 24, 2018
1 parent 490a32c commit 39438c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/Parser.unittest.js
Original file line number Diff line number Diff line change
Expand Up @@ -471,10 +471,11 @@ describe("Parser", () => {
"await expression": "async function x(y) { await y }",
"await iteration": "async function f() { for await (x of xs); }"
};
const parser = new Parser();
Object.keys(cases).forEach((name) => {
const expr = cases[name];
it(name, () => {
const actual = Parser.parse(expr);
const actual = parser.parse(expr);
should.strictEqual(typeof actual, "object");
});
});
Expand Down

0 comments on commit 39438c7

Please sign in to comment.