mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
17 lines
689 B
JavaScript
17 lines
689 B
JavaScript
/* global jsdoc */
|
|
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');
|
|
});
|
|
});
|