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.
20 lines
728 B
JavaScript
20 lines
728 B
JavaScript
describe('module that exports a function that is not a constructor', () => {
|
|
const docSet = jsdoc.getDocSetFromFile('test/fixtures/moduleisfunction.js');
|
|
const functions = docSet.doclets.filter(({kind}) => kind === 'function');
|
|
|
|
it('should include one doclet whose kind is "function"', () => {
|
|
expect(functions.length).toBe(1);
|
|
expect(functions[0].kind).toBe('function');
|
|
});
|
|
|
|
describe('function doclet', () => {
|
|
it('should not include a "scope" property', () => {
|
|
expect(functions[0].scope).not.toBeDefined();
|
|
});
|
|
|
|
it('should not include a "memberof" property', () => {
|
|
expect(functions[0].memberof).not.toBeDefined();
|
|
});
|
|
});
|
|
});
|