mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
12 lines
443 B
JavaScript
12 lines
443 B
JavaScript
/* global jsdoc */
|
|
describe('Properties documented in instance methods', () => {
|
|
const docSet = jsdoc.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');
|
|
});
|
|
});
|