fix tests

This commit is contained in:
Iuri Matias 2018-10-29 17:07:51 +01:00
parent 10fd5af9a6
commit 1f5029c9a8
3 changed files with 5 additions and 2 deletions

View File

@ -24,6 +24,7 @@ let generateApiObject = function() {
};
var apiObject = {
registerAPICall: () => {},
registerCompiler: function() {},
logger: new TestLogger({}),
events: TestEvents,

View File

@ -7,9 +7,10 @@ let version = require('../package.json').version;
describe('embark.Console', function() {
let ipc = new IPC({ipcRole: 'none'});
let plugins = new Plugins({plugins: {}});
let events = {once: () => {}, setCommandHandler: () => {}, emit: () => {}};
let events = {once: () => {}, setCommandHandler: () => {}, emit: () => {}, on: () => {}};
let plugins = new Plugins({plugins: {}, events: events});
let embarkObject = {
registerAPICall: () => {},
events: events,
logger: plugins.logger,
registerConsoleCommand: (cmd, opt) => {},

View File

@ -48,6 +48,7 @@ describe('embark.Contracts', function() {
let events = new Events();
let embarkObject = {
registerAPICall: () => {},
events: events,
logger: plugins.logger,
embarkConfig: {