Skip to content

Commit 799e911

Browse files
committed
improve statement coverage
1 parent 2fa6bce commit 799e911

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

test/statementTests.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,4 +193,19 @@ describe('Test statements', function() {
193193
// always block
194194
expr.always.kind.should.be.exactly('block');
195195
});
196+
197+
it('test inner statements', function() {
198+
var ast = parser.parseEval([
199+
'if (true) {',
200+
' function foo() {}',
201+
' abstract class foo {}',
202+
' trait foo {}',
203+
' final class foo {}',
204+
' interface foo {}',
205+
'}'
206+
].join('\n'), {
207+
parser: { debug: false }
208+
});
209+
// @todo : do assert
210+
});
196211
});

0 commit comments

Comments
 (0)