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

12 lines
487 B
JavaScript

describe('class without a name', () => {
const docSet = jsdoc.getDocSetFromFile('test/fixtures/classwithoutname.js').doclets
.filter(({name}) => name === '');
it('When the doclet for a class has an empty name, it should also have an empty longname', () => {
expect(docSet).toBeDefined();
expect(docSet.length).toBe(1);
expect(docSet[0].description).toBe('Create an instance of MyClass.');
expect(docSet[0].longname).toBe('');
});
});