moduleinner.js 657 B

12345678910111213141516
  1. 'use strict';
  2. describe('inner scope for modules', function() {
  3. var docSet = jasmine.getDocSetFromFile('test/fixtures/moduleinner.js');
  4. var fooIn = docSet.getByLongname('module:my/module~fooIn')[0];
  5. var fooOut = docSet.getByLongname('module:my/module~fooOut')[0];
  6. it('When a function appears in the topscope of a module, the symbol is documented as an inner member of that module.', function() {
  7. expect(typeof fooOut).toEqual('object');
  8. expect(fooOut.longname).toEqual('module:my/module~fooOut');
  9. expect(typeof fooIn).toEqual('object');
  10. expect(fooIn.longname).toEqual('module:my/module~fooIn');
  11. });
  12. });