jsdoc/test/specs/documentation/moduleinner.js
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

13 lines
641 B
JavaScript

describe("inner scope for modules", function() {
var docSet = jasmine.getDocSetFromFile('test/fixtures/moduleinner.js'),
fooIn = docSet.getByLongname('module:my/module~fooIn')[0],
fooOut = docSet.getByLongname('module:my/module~fooOut')[0];
it('When a function appears in the topscope of a module, the symbol is documented as an inner member of that module.', function() {
expect(typeof fooOut).toEqual('object');
expect(fooOut.longname).toEqual('module:my/module~fooOut');
expect(typeof fooIn).toEqual('object');
expect(fooIn.longname).toEqual('module:my/module~fooIn');
});
});