jsdoc/test/specs/documentation/trailingcomment.js

18 lines
674 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).toBeArrayOfSize(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).toBeArrayOfSize(1);
});
});