jsdoc/test/t/cases/exports.js
2011-06-17 21:06:37 +01:00

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