jsdoc/test/specs/documentation/objectkeys.js
Jeff Williams aa0b6c1bfa switch to new-ish ECMAScript syntax
With help from Lebab, plus a lot of manual cleanup. (And more cleanup to come, I'm sure.)
2019-01-15 18:39:10 -08:00

11 lines
367 B
JavaScript

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