jsdoc/test/specs/documentation/methoddefinition.js
2015-10-30 13:11:43 -06:00

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');
});
});