import { expect, should } from 'chai'; import 'mocha'; import {Command} from '../../main/models/command' const configuration = require('../../../configs/command-config.json'); const commands = require('../../../configs/commands.json'); describe("Command - Specification", () => { it("should be instantiate properly", () => { const commands = configuration.commands.Indexer; const instance = new Command("hello: {{name}}"); const rendered = instance.render({name: 'Guilherme'}) expect(rendered).be.equals("hello: Guilherme"); }) })