mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
consumes ASTs that follow the Mozilla Parser API spec: https://developer.mozilla.org/en-US/docs/SpiderMonkey/Parser_API passes all tests on OS X; performance is comparable to previous version. also includes some miscellaneous cleanup. remaining issues: - only Rhino AST builder is supported - node visitors (old and new) may not be hooked up yet - circular-reference issues in doclets - docs are (mostly) missing - various other TODO comments
12 lines
679 B
JavaScript
12 lines
679 B
JavaScript
/*global describe: true, expect: true, it: true, jasmine: true */
|
|
describe("'exports' symbol in modules", function() {
|
|
var docSet = jasmine.getDocSetFromFile('test/fixtures/exports.js');
|
|
var helloworld = docSet.getByLongname('module:hello/world')[0];
|
|
var sayhello = docSet.getByLongname('module:hello/world.sayHello')[0];
|
|
|
|
it('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() {
|
|
expect(typeof sayhello).toEqual('object');
|
|
expect(sayhello.kind).toEqual('function');
|
|
expect(sayhello.memberof).toEqual('module:hello/world');
|
|
});
|
|
}); |