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('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');
});
});
});