Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x | const expect = require('chai').expect; import SetupFlags from './setup-flags'; import { COMPODOC_DEFAULTS } from '../defaults'; describe('Use-cases - Should setup flags', () => { const pkg = { version: '0.0.1' }; let options; beforeEach(() => { SetupFlags.setup(pkg); options = SetupFlags.programOptions; }); it('should handle options', async () => { expect(options.coverageTestThresholdFail).to.be.true; expect(options.exportFormat).equal(COMPODOC_DEFAULTS.exportFormat); expect(options.gaSite).equal(COMPODOC_DEFAULTS.gaSite); expect(options.includesName).equal(COMPODOC_DEFAULTS.additionalEntryName); expect(options.language).equal(COMPODOC_DEFAULTS.language); expect(options.name).equal(COMPODOC_DEFAULTS.title); expect(options.output).equal(COMPODOC_DEFAULTS.folder); expect(options.port).equal(COMPODOC_DEFAULTS.port); expect(options.toggleMenuItems).equal(COMPODOC_DEFAULTS.toggleMenuItems); }); }); |