jsdoc/test/t/cases/alias.js

20 lines
745 B
JavaScript

(function() {
var docSet = testhelpers.getDocSetFromFile('test/cases/alias.js'),
found = docSet.getByLongname('myObject').filter(function($) {
return ! $.undocumented;
}),
foundMember = docSet.getByLongname('myObject.myProperty')
//dump(found);
test('When a symbol is given an alias it is documented as if the name is the alias value.', function() {
assert.equal(found[0].longname, 'myObject');
});
test('When a symbol is a member of an alias it is documented as if the memberof is the alias value.', function() {
assert.equal(foundMember[0].longname, 'myObject.myProperty');
assert.equal(foundMember[0].memberof, 'myObject');
});
})();