mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
11 lines
577 B
JavaScript
11 lines
577 B
JavaScript
(function() {
|
|
var docSet = testhelpers.getDocSetFromFile('test/cases/exports.js'),
|
|
helloworld = docSet.getByLongname('module:hello/world')[0],
|
|
sayhello = docSet.getByLongname('module:hello/world.sayHello')[0];
|
|
|
|
test('When a symbol starts with the special name "exports" and is in a file with a @module tag, the symbol is documented as a member of that module.', function() {
|
|
assert.equal(typeof sayhello, 'object');
|
|
assert.equal(sayhello.kind, 'function');
|
|
assert.equal(sayhello.memberof, 'module:hello/world');
|
|
});
|
|
})(); |