jsdoc/test/specs/documentation/moduleinner.js
Jeff Williams 617b3236bf Replace old, vendored Jasmine with current npm package.
JSDoc-specific test functions are now properties of a `jsdoc` global, not a `jasmine` global.

Also updates license files to reflect the fact that we no longer vendor anything.
2019-05-12 15:10:38 -07:00

14 lines
636 B
JavaScript

describe('inner scope for modules', () => {
const docSet = jsdoc.getDocSetFromFile('test/fixtures/moduleinner.js');
const fooIn = docSet.getByLongname('module:my/module~fooIn')[0];
const 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.', () => {
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');
});
});