mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
21 lines
709 B
JavaScript
21 lines
709 B
JavaScript
'use strict';
|
|
|
|
describe('generator functions', function() {
|
|
var docSet = jasmine.getDocSetFromFile('test/fixtures/generators.js');
|
|
var startsAt0 = docSet.getByLongname('startsAt0')[0];
|
|
var startsAt1 = docSet.getByLongname('startsAt1')[0];
|
|
var startsAt2 = docSet.getByLongname('Generator#startsAt2')[0];
|
|
|
|
it('should flag generator functions', function() {
|
|
expect(startsAt0.generator).toBe(true);
|
|
});
|
|
|
|
it('should flag generator functions assigned to variables', function() {
|
|
expect(startsAt1.generator).toBe(true);
|
|
});
|
|
|
|
it('should flag generator functions that are method definitions', function() {
|
|
expect(startsAt2.generator).toBe(true);
|
|
});
|
|
});
|