Jeff Williams 617b3236bf Replace old, vendored Jasmine with current npm package.
JSDoc-specific test functions are now properties of a `jsdoc` global, not a `jasmine` global.

Also updates license files to reflect the fact that we no longer vendor anything.
2019-05-12 15:10:38 -07:00

18 lines
666 B
JavaScript

describe('const declarations', () => {
it('should automatically set the doclet.kind to "constant" for const declarations', () => {
const docSet = jsdoc.getDocSetFromFile('test/fixtures/constanttag.js');
const myPocket = docSet.getByLongname('myPocket')[0];
expect(myPocket.kind).toBe('constant');
});
describe('ES 2015 only', () => {
it('should not override kind="class" when a const is autodetected', () => {
const docSet = jsdoc.getDocSetFromFile('test/fixtures/constanttag2.js');
const foo = docSet.getByLongname('Foo')[0];
expect(foo.kind).toBe('class');
});
});
});