mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
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.
13 lines
388 B
JavaScript
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');
|
|
});
|
|
});
|