Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ichiriac committed Jan 7, 2017
1 parent 6b01724 commit 1064114
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
1 change: 0 additions & 1 deletion test/lexer.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ describe('Test lexer', function () {
reader.unlex();
reader.line.should.be.exactly(1);
reader.text.should.be.exactly('hello');

});
describe('Test float', function () {
reader.read('1.2.3');
Expand Down
11 changes: 11 additions & 0 deletions test/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,15 @@ describe('Test parser', function () {
ast.body[0].options[1].kind.should.be.exactly('number');
ast.body[0].options[1].value.should.be.exactly('1.23');
});

it('test rule', function () {
var ast = doc.parse([
'/**',
' * Description',
' * @return void Some extra informations',
' */'
].join('\n'));
ast.body[0].kind.should.be.exactly('return');
console.log(ast.body[0]);
});
});

0 comments on commit 1064114

Please sign in to comment.