methoddefinition.js 691 B

123456789101112131415161718
  1. 'use strict';
  2. describe('method definition inside a class declaration', function() {
  3. var docSet = jasmine.getDocSetFromFile('test/fixtures/methoddefinition.js');
  4. var runMethod = docSet.getByLongname('Test#run')[0];
  5. var staticRunMethod = docSet.getByLongname('Test.run')[0];
  6. it('methods should have documentation comments', function() {
  7. expect(runMethod).toBeDefined();
  8. expect(runMethod.description).toBe('Document me.');
  9. expect(runMethod.kind).toBe('function');
  10. expect(staticRunMethod).toBeDefined();
  11. expect(staticRunMethod.description).toBe('Static document me.');
  12. expect(staticRunMethod.kind).toBe('function');
  13. });
  14. });