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.
16 lines
670 B
JavaScript
16 lines
670 B
JavaScript
describe('method definition inside a class declaration', () => {
|
|
const docSet = jsdoc.getDocSetFromFile('test/fixtures/methoddefinition.js');
|
|
const runMethod = docSet.getByLongname('Test#run')[0];
|
|
const staticRunMethod = docSet.getByLongname('Test.run')[0];
|
|
|
|
it('methods should have documentation comments', () => {
|
|
expect(runMethod).toBeDefined();
|
|
expect(runMethod.description).toBe('Document me.');
|
|
expect(runMethod.kind).toBe('function');
|
|
|
|
expect(staticRunMethod).toBeDefined();
|
|
expect(staticRunMethod.description).toBe('Static document me.');
|
|
expect(staticRunMethod.kind).toBe('function');
|
|
});
|
|
});
|