jsdoc/test/t/cases/inlinecomment.js
2012-03-20 23:24:21 -07:00

11 lines
574 B
JavaScript

(function() {
var docSet = testhelpers.getDocSetFromFile('test/cases/inlinecomment.js'),
t = docSet.getByLongname('test'),
t2 = docSet.getByLongname('test2');
test('When there is an inline comment on a line ending with no semicolon, that comment and the next comment are still captured', function() {
assert.equal(t.length, 1, "Inline comment on line without semicolon is captured");
assert.equal(t2.length, 1, "Inline comment on line after line without semicolon is captured");
});
})();