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.
18 lines
666 B
JavaScript
18 lines
666 B
JavaScript
describe('trailing comment', () => {
|
|
it('should not ignore trailing comments in a non-empty source file with a `use strict` ' +
|
|
'declaration', () => {
|
|
const docSet = jsdoc.getDocSetFromFile('test/fixtures/trailingcomment.js');
|
|
const foo = docSet.getByLongname('external:foo');
|
|
|
|
expect(foo.length).toBe(1);
|
|
});
|
|
|
|
it('should not ignore trailing comments in an empty source file with a `use strict` ' +
|
|
'declaration', () => {
|
|
const docSet = jsdoc.getDocSetFromFile('test/fixtures/trailingcomment2.js');
|
|
const foo = docSet.getByLongname('external:foo');
|
|
|
|
expect(foo.length).toBe(1);
|
|
});
|
|
});
|