jsdoc/test/specs/documentation/instanceproperty.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
426 B
JavaScript

describe('Properties documented in instance methods', () => {
const docSet = jasmine.getDocSetFromFile('test/fixtures/instanceproperty.js');
const bar = docSet.getByLongname('Foo#bar')[0];
it('should set the correct longname when a property is documented in an instance method', () => {
expect(bar).toBeDefined();
expect(bar.name).toBe('bar');
expect(bar.kind).toBe('member');
});
});