jsdoc/test/specs/documentation/inlinecomment.js
Jeff Williams 5f578e803b migrate from old, vendored Jasmine to jasmine package (#1602)
Plus some miscellaneous cleanup.
2019-01-21 19:38:07 -08:00

15 lines
602 B
JavaScript

/* global jsdoc */
describe('inline comments', () => {
const docSet = jsdoc.getDocSetFromFile('test/fixtures/inlinecomment.js');
const t = docSet.getByLongname('test');
const t2 = docSet.getByLongname('test2');
it('When there is an inline comment on a line ending with no semicolon, ' +
'that comment and the next comment are still captured', () => {
// Inline comment on line without semicolon is captured
expect(t.length).toEqual(1);
// Inline comment on line after line without semicolon is captured
expect(t2.length).toEqual(1);
});
});