Jannon 034205baa8 Testing Framework Upgrade Part II
The second half of the first phase of the testing framework upgrade.  This finishes moving the exisintg tests to jasmine and the new test directory structure
2012-05-04 18:52:19 -07:00

11 lines
613 B
JavaScript

describe("'exports' symbol in modules", function() {
var docSet = jasmine.getDocSetFromFile('test/fixtures/exports.js'),
helloworld = docSet.getByLongname('module:hello/world')[0],
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');
});
});