jsdoc/test/specs/documentation/objectkeys.js
Jeff Williams 01df038474 unconditionally add the necessary properties to AST nodes (#976)
Fixes a bizarre bug that caused us to assign the wrong name to object properties, apparently because the node ID was not defined at the appropriate time.
2015-06-08 15:24:55 -07:00

13 lines
388 B
JavaScript

'use strict';
describe('object keys', function() {
var docSet = jasmine.getDocSetFromFile('test/fixtures/objectkeys.js');
it('should assign the correct longname and memberof to object keys after the first key', function() {
var bar = docSet.getByLongname('myObject.bar')[0];
expect(bar).toBeDefined();
expect(bar.memberof).toBe('myObject');
});
});