From 3f2c514d18d412fcbdcf28a2f07b153cf4be0621 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Fri, 27 Jul 2018 15:35:47 -0400 Subject: [PATCH] update tests --- test/code_generator.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/test/code_generator.js b/test/code_generator.js index b8d7c6dd..80f6120c 100644 --- a/test/code_generator.js +++ b/test/code_generator.js @@ -1,5 +1,5 @@ /*globals describe, it*/ -let CodeGenerator = require('../lib/contracts/code_generator.js'); +let CodeGenerator = require('../lib/modules/code_generator'); let assert = require('assert'); function replaceCRLF(string) { @@ -29,7 +29,14 @@ describe('embark.CodeGenerator', function() { } ] - let generator = new CodeGenerator({blockchainConfig: {}}); + const TestEvents = { + request: (cmd, cb) => { + cb(currentSolcVersion); + }, + setCommandHandler: () => { + } + }; + let generator = new CodeGenerator({config: {blockchainConfig: {}}, events: TestEvents}, {}); describe('with EmbarkJS', function() { let withEmbarkJS = true;