mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
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.
10 lines
445 B
JavaScript
10 lines
445 B
JavaScript
describe('export default class', () => {
|
|
const docSet = jsdoc.getDocSetFromFile('test/fixtures/exportdefaultclass.js');
|
|
const klass = docSet.getByLongname('module:test').filter(({undocumented}) => !undocumented)[1];
|
|
|
|
it('should combine the classdesc and constructor description into a single doclet', () => {
|
|
expect(klass.classdesc).toBe('Test class');
|
|
expect(klass.description).toBe('Test constructor');
|
|
});
|
|
});
|