jsdoc/test/t/cases/exports.js
2011-01-29 17:08:01 +00:00

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');
});
})();