mirror of https://github.com/embarklabs/embark.git
update tests
This commit is contained in:
parent
0e6d526ab4
commit
a3bb4bc53b
|
@ -2,6 +2,7 @@
|
||||||
let SolidityCompiler = require('../lib/modules/solidity');
|
let SolidityCompiler = require('../lib/modules/solidity');
|
||||||
let TestLogger = require('../lib/tests/test_logger.js');
|
let TestLogger = require('../lib/tests/test_logger.js');
|
||||||
let File = require('../lib/core/file.js');
|
let File = require('../lib/core/file.js');
|
||||||
|
let Ipc = require('../lib/core/ipc.js');
|
||||||
let assert = require('assert');
|
let assert = require('assert');
|
||||||
|
|
||||||
let readFile = function(file) {
|
let readFile = function(file) {
|
||||||
|
@ -16,6 +17,10 @@ var TestEvents = {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
let ipcObject = new Ipc({
|
||||||
|
ipcRole: 'none'
|
||||||
|
});
|
||||||
|
|
||||||
var apiObject = {
|
var apiObject = {
|
||||||
registerCompiler: function() {},
|
registerCompiler: function() {},
|
||||||
logger: new TestLogger({}),
|
logger: new TestLogger({}),
|
||||||
|
@ -27,7 +32,7 @@ var apiObject = {
|
||||||
|
|
||||||
describe('embark.Compiler', function() {
|
describe('embark.Compiler', function() {
|
||||||
//let compiler = new Compiler({logger: new TestLogger({})});
|
//let compiler = new Compiler({logger: new TestLogger({})});
|
||||||
let compiler = new SolidityCompiler(apiObject);
|
let compiler = new SolidityCompiler(apiObject, {ipc: ipcObject});
|
||||||
|
|
||||||
describe('#compile_solidity', function() {
|
describe('#compile_solidity', function() {
|
||||||
this.timeout(0);
|
this.timeout(0);
|
||||||
|
|
|
@ -5,6 +5,7 @@ let Logger = require('../lib/core/logger.js');
|
||||||
let File = require('../lib/core/file.js');
|
let File = require('../lib/core/file.js');
|
||||||
let TestLogger = require('../lib/tests/test_logger.js');
|
let TestLogger = require('../lib/tests/test_logger.js');
|
||||||
let Events = require('../lib/core/events');
|
let Events = require('../lib/core/events');
|
||||||
|
let Ipc = require('../lib/core/ipc.js');
|
||||||
let assert = require('assert');
|
let assert = require('assert');
|
||||||
|
|
||||||
//let SolidityCompiler = require('../lib/modules/solidity');
|
//let SolidityCompiler = require('../lib/modules/solidity');
|
||||||
|
@ -31,7 +32,10 @@ describe('embark.Contracts', function() {
|
||||||
contractDirectories: ['app/contracts/']
|
contractDirectories: ['app/contracts/']
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
plugins.loadInternalPlugin('solidity');
|
let ipcObject = new Ipc({
|
||||||
|
ipcRole: 'none'
|
||||||
|
});
|
||||||
|
plugins.loadInternalPlugin('solidity', {ipc: ipcObject});
|
||||||
|
|
||||||
let compiler = new Compiler({plugins: plugins, logger: plugins.logger});
|
let compiler = new Compiler({plugins: plugins, logger: plugins.logger});
|
||||||
let events = new Events();
|
let events = new Events();
|
||||||
|
@ -123,7 +127,10 @@ describe('embark.Contracts', function() {
|
||||||
contractDirectories: ['app/contracts/']
|
contractDirectories: ['app/contracts/']
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
plugins.loadInternalPlugin('solidity');
|
let ipcObject = new Ipc({
|
||||||
|
ipcRole: 'none'
|
||||||
|
});
|
||||||
|
plugins.loadInternalPlugin('solidity', {ipc: ipcObject});
|
||||||
|
|
||||||
let compiler = new Compiler({plugins: plugins, logger: plugins.logger});
|
let compiler = new Compiler({plugins: plugins, logger: plugins.logger});
|
||||||
let events = new Events();
|
let events = new Events();
|
||||||
|
|
Loading…
Reference in New Issue