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

14 lines
545 B
JavaScript

describe('starbangstar', () => {
const docSet = jasmine.getDocSetFromFile('test/fixtures/starbangstar.js');
const mod = docSet.getByLongname('module:myscript/core')[0];
const x = docSet.getByLongname('module:myscript/core.x')[0];
it('should not treat a doclet starting with /*!* as a JSDoc comment.', () => {
expect(mod.description).toEqual('Script that does something awesome');
});
it('should not treat a doclet starting with /*!** as a JSDoc comment.', () => {
expect(x).toBeUndefined();
});
});