mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
15 lines
760 B
JavaScript
15 lines
760 B
JavaScript
(function() {
|
|
var docSet = testhelpers.getDocSetFromFile('test/cases/lends2.js'),
|
|
person = docSet.getByLongname('Person').filter(function($) {
|
|
return ! $.undocumented;
|
|
})[0],
|
|
say = docSet.getByLongname('Person#say'),
|
|
name = docSet.getByLongname('Person#name')
|
|
|
|
test('When a documented member is inside an objlit associated with a @lends tag.', function() {
|
|
assert.equal(person.description, 'Construct a Person.', 'A tag with a @constructs tag is documented as a constructor.');
|
|
assert.equal(say.length, 1, 'The member should be documented as a member of the lendee.');
|
|
assert.equal(name.length, 1, 'The this member should be documented as a member of the lendee.');
|
|
});
|
|
|
|
})(); |