jsdoc/test/specs/documentation/instanceproperty.js
Jeff Williams 087f07dcd5 use the correct longname for properties documented in instance methods (#1011)
Fixes a regression caused by 65f307322ac64d965694dca8f82bf98f08a1e2e4.
2015-08-18 15:34:24 -07:00

13 lines
447 B
JavaScript

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