From 1f5029c9a80e01225ee67e84765137126dd01d77 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Mon, 29 Oct 2018 17:07:51 +0100 Subject: [PATCH] fix tests --- test/compiler.js | 1 + test/console.js | 5 +++-- test/contracts.js | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/test/compiler.js b/test/compiler.js index bfe6e22cc..e070075a3 100644 --- a/test/compiler.js +++ b/test/compiler.js @@ -24,6 +24,7 @@ let generateApiObject = function() { }; var apiObject = { + registerAPICall: () => {}, registerCompiler: function() {}, logger: new TestLogger({}), events: TestEvents, diff --git a/test/console.js b/test/console.js index dc1e936eb..385e267a6 100644 --- a/test/console.js +++ b/test/console.js @@ -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) => {}, diff --git a/test/contracts.js b/test/contracts.js index 7068cb5eb..4de7e2a9e 100644 --- a/test/contracts.js +++ b/test/contracts.js @@ -48,6 +48,7 @@ describe('embark.Contracts', function() { let events = new Events(); let embarkObject = { + registerAPICall: () => {}, events: events, logger: plugins.logger, embarkConfig: {