update tests

This commit is contained in:
Iuri Matias 2018-07-27 15:35:47 -04:00
parent 502f38b3d6
commit 3f2c514d18
1 changed files with 9 additions and 2 deletions

View File

@ -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;