mirror of https://github.com/embarklabs/embark.git
fix tests
This commit is contained in:
parent
10fd5af9a6
commit
1f5029c9a8
|
@ -24,6 +24,7 @@ let generateApiObject = function() {
|
|||
};
|
||||
|
||||
var apiObject = {
|
||||
registerAPICall: () => {},
|
||||
registerCompiler: function() {},
|
||||
logger: new TestLogger({}),
|
||||
events: TestEvents,
|
||||
|
|
|
@ -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) => {},
|
||||
|
|
|
@ -48,6 +48,7 @@ describe('embark.Contracts', function() {
|
|||
|
||||
let events = new Events();
|
||||
let embarkObject = {
|
||||
registerAPICall: () => {},
|
||||
events: events,
|
||||
logger: plugins.logger,
|
||||
embarkConfig: {
|
||||
|
|
Loading…
Reference in New Issue