mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-11 14:24:24 +00:00
update tests
This commit is contained in:
parent
a55ff613bf
commit
86a715abf7
@ -27,7 +27,15 @@ var apiObject = {
|
|||||||
logger: new TestLogger({}),
|
logger: new TestLogger({}),
|
||||||
events: TestEvents,
|
events: TestEvents,
|
||||||
config: {
|
config: {
|
||||||
contractDirectories: ['app/contracts/']
|
contractDirectories: ['app/contracts/'],
|
||||||
|
embarkConfig: {
|
||||||
|
options: {
|
||||||
|
solc: {
|
||||||
|
"optimize": true,
|
||||||
|
"optimize-runs": 200
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -30,7 +30,15 @@ describe('embark.Contracts', function() {
|
|||||||
logger: new TestLogger({}),
|
logger: new TestLogger({}),
|
||||||
events: TestEvents,
|
events: TestEvents,
|
||||||
config: {
|
config: {
|
||||||
contractDirectories: ['app/contracts/']
|
contractDirectories: ['app/contracts/'],
|
||||||
|
embarkConfig: {
|
||||||
|
options: {
|
||||||
|
solc: {
|
||||||
|
"optimize": true,
|
||||||
|
"optimize-runs": 200
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
let ipcObject = new Ipc({
|
let ipcObject = new Ipc({
|
||||||
@ -39,7 +47,20 @@ describe('embark.Contracts', function() {
|
|||||||
plugins.loadInternalPlugin('solidity', {ipc: ipcObject});
|
plugins.loadInternalPlugin('solidity', {ipc: ipcObject});
|
||||||
|
|
||||||
let events = new Events();
|
let events = new Events();
|
||||||
let compiler = new Compiler({events: events, logger: plugins.logger}, {plugins: plugins});
|
let embarkObject = {
|
||||||
|
events: events,
|
||||||
|
logger: plugins.logger,
|
||||||
|
embarkConfig: {
|
||||||
|
options: {
|
||||||
|
solc: {
|
||||||
|
"optimize": true,
|
||||||
|
"optimize-runs": 200
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
let compiler = new Compiler(embarkObject, {plugins: plugins});
|
||||||
|
|
||||||
events.setCommandHandler("config:contractsConfig", function(cb) {
|
events.setCommandHandler("config:contractsConfig", function(cb) {
|
||||||
cb(contractsConfig);
|
cb(contractsConfig);
|
||||||
@ -136,7 +157,15 @@ describe('embark.Contracts', function() {
|
|||||||
logger: new TestLogger({}),
|
logger: new TestLogger({}),
|
||||||
events: TestEvents,
|
events: TestEvents,
|
||||||
config: {
|
config: {
|
||||||
contractDirectories: ['app/contracts/']
|
contractDirectories: ['app/contracts/'],
|
||||||
|
embarkConfig: {
|
||||||
|
options: {
|
||||||
|
solc: {
|
||||||
|
"optimize": true,
|
||||||
|
"optimize-runs": 200
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
let ipcObject = new Ipc({
|
let ipcObject = new Ipc({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user