mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
18 lines
721 B
JavaScript
18 lines
721 B
JavaScript
(function() {
|
|
var docSet = testhelpers.getDocSetFromFile('test/cases/alias.js'),
|
|
found = docSet.getByLongname('myObject').filter(function($) {
|
|
return ! $.undocumented;
|
|
}),
|
|
|
|
foundMember = docSet.getByLongname('myObject.myProperty')
|
|
|
|
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');
|
|
});
|
|
|
|
})(); |