Skip to content

Commit ae9fea9

Browse files
committed
cover ast.js
1 parent 0bdb379 commit ae9fea9

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

test/astTests.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,25 @@ describe('Test AST structure', function() {
99
ast.children.length.should.be.exactly(0);
1010
});
1111

12+
it('test withSource options', function() {
13+
var ast = parser.parseEval('true;', {
14+
ast: {
15+
withSource: true
16+
}
17+
});
18+
// @todo
19+
});
20+
it('test withPositions options', function() {
21+
var ast = parser.parseEval('true;', {
22+
ast: {
23+
withPositions: true
24+
}
25+
});
26+
// @todo
27+
});
28+
29+
30+
1231
it('test arrays', function() {
1332
var ast;
1433

0 commit comments

Comments
 (0)