UNPKG

firmament-bash

Version:

Firmament module for interpreting commands in JSON files using bash

22 lines 870 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); require("reflect-metadata"); const inversify_config_1 = require("../inversify.config"); const chai_1 = require("chai"); const mocha = require("mocha"); describe('Testing Spawn Creation/Force Error', () => { mocha.it('use mocha instance to avoid linter warning', (done) => { done(); }); it('should be created by kernel', (done) => { const processCommandJson = inversify_config_1.default.get('ProcessCommandJson'); chai_1.expect(processCommandJson).to.exist; done(); }); it('should have final callback with error', (done) => { const processCommandJson = inversify_config_1.default.get('ProcessCommandJson'); processCommandJson.forceError = true; done(); }); }); //# sourceMappingURL=process-command-json.test.js.map