We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5dc207e commit e39268bCopy full SHA for e39268b
test/ast.test.js
@@ -24,4 +24,23 @@ describe("Test AST class (edge cases)", function() {
24
node();
25
}).toThrow(/foo/);
26
});
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
37
38
39
40
41
+ expect(() => {
42
+ test.parseEval('1 + ;');
43
+ }).toThrow();
44
45
+
46
0 commit comments