moduleisfunction.js 802 B

123456789101112131415161718192021222324
  1. 'use strict';
  2. describe('module that exports a function that is not a constructor', function() {
  3. var docSet = jasmine.getDocSetFromFile('test/fixtures/moduleisfunction.js');
  4. var functions = docSet.doclets.filter(function(doclet) {
  5. return doclet.kind === 'function';
  6. });
  7. it('should include one doclet whose kind is "function"', function() {
  8. expect(functions.length).toBe(1);
  9. expect(functions[0].kind).toBe('function');
  10. });
  11. describe('function doclet', function() {
  12. it('should not include a "scope" property', function() {
  13. expect(functions[0].scope).not.toBeDefined();
  14. });
  15. it('should not include a "memberof" property', function() {
  16. expect(functions[0].memberof).not.toBeDefined();
  17. });
  18. });
  19. });