jsdoc/test/specs/documentation/trailingcomment.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

19 lines
685 B
JavaScript

/* global jsdoc */
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);
});
});