jsdoc/test/t/cases/lends2.js
2011-02-25 23:00:07 +00:00

17 lines
785 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')
//dump(person);
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.');
});
})();