Skip to content

Commit e39268b

Browse files
committed
add more test
1 parent 5dc207e commit e39268b

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

test/ast.test.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,23 @@ describe("Test AST class (edge cases)", function() {
2424
node();
2525
}).toThrow(/foo/);
2626
});
27+
it("test debug mode", function() {
28+
const test = parser.create({
29+
parser: {
30+
debug: true
31+
}
32+
});
33+
test.parseEval('1 + 1;');
34+
});
35+
it("test debug mode / errors", function() {
36+
const test = parser.create({
37+
parser: {
38+
debug: true
39+
}
40+
});
41+
expect(() => {
42+
test.parseEval('1 + ;');
43+
}).toThrow();
44+
});
45+
2746
});

0 commit comments

Comments
 (0)