mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
18 lines
691 B
JavaScript
18 lines
691 B
JavaScript
'use strict';
|
|
|
|
describe('method definition inside a class declaration', function() {
|
|
var docSet = jasmine.getDocSetFromFile('test/fixtures/methoddefinition.js');
|
|
var runMethod = docSet.getByLongname('Test#run')[0];
|
|
var staticRunMethod = docSet.getByLongname('Test.run')[0];
|
|
|
|
it('methods should have documentation comments', function() {
|
|
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');
|
|
});
|
|
});
|