mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
JSDoc-specific test functions are now properties of a `jsdoc` global, not a `jasmine` global. Also updates license files to reflect the fact that we no longer vendor anything.
14 lines
583 B
JavaScript
14 lines
583 B
JavaScript
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);
|
|
});
|
|
});
|