mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
13 lines
615 B
JavaScript
13 lines
615 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];
|
|
|
|
//dump(docSet.doclets); exit(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');
|
|
});
|
|
})(); |