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

12 lines
489 B
JavaScript

describe('class without a name', () => {
const docSet = jasmine.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('');
});
});