import { expect, should } from 'chai'; import 'mocha'; import {ConfigFileCommandTemplateLoader} from '../../main/loader/impl/configFileCommandTemplateLoader' const configuration = require('../../../configs/command-config.json'); const commands = require('../../../configs/commands.json'); describe("CommandLoader - Specification", () => { it("Should instantiate properly", () => { const loader = new ConfigFileCommandTemplateLoader(commands); const command = loader .loadCommandTemplateBy("commands/averageResponse.coffee") .then(command =>{ expect(command).not.be.null; expect(command.template).not.be.null; expect(command.filename).not.be.null; }); }); });