jsdoc/test/specs/documentation/trailingcomment.js
Jeff Williams aa0b6c1bfa switch to new-ish ECMAScript syntax
With help from Lebab, plus a lot of manual cleanup. (And more cleanup to come, I'm sure.)
2019-01-15 18:39:10 -08:00

18 lines
670 B
JavaScript

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