mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
With help from Lebab, plus a lot of manual cleanup. (And more cleanup to come, I'm sure.)
12 lines
489 B
JavaScript
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('');
|
|
});
|
|
});
|