mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
20 lines
692 B
JavaScript
20 lines
692 B
JavaScript
'use strict';
|
|
|
|
describe('trailing comment', function() {
|
|
it('should not ignore trailing comments in a non-empty source file with a `use strict` ' +
|
|
'declaration', function() {
|
|
var docSet = jasmine.getDocSetFromFile('test/fixtures/trailingcomment.js');
|
|
var 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', function() {
|
|
var docSet = jasmine.getDocSetFromFile('test/fixtures/trailingcomment2.js');
|
|
var foo = docSet.getByLongname('external:foo');
|
|
|
|
expect(foo.length).toBe(1);
|
|
});
|
|
});
|