mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-10 22:05:55 +00:00
fix(@embark/test-runner): fix test contracts being tracked
This commit is contained in:
parent
72278aad72
commit
fe3e604fec
@ -1,4 +1,4 @@
|
|||||||
/*global contract, config, it, assert, web3, xit*/
|
/*global contract, config, it, assert, web3*/
|
||||||
const SimpleStorage = require('Embark/contracts/SimpleStorage');
|
const SimpleStorage = require('Embark/contracts/SimpleStorage');
|
||||||
let accounts;
|
let accounts;
|
||||||
const {Utils} = require('Embark/EmbarkJS');
|
const {Utils} = require('Embark/EmbarkJS');
|
||||||
@ -37,7 +37,7 @@ contract("SimpleStorage", function() {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
xit("should set to self address", async function() {
|
it("should set to self address", async function() {
|
||||||
let result = await SimpleStorage.methods.registar().call();
|
let result = await SimpleStorage.methods.registar().call();
|
||||||
assert.strictEqual(result, SimpleStorage.options.address);
|
assert.strictEqual(result, SimpleStorage.options.address);
|
||||||
});
|
});
|
||||||
|
@ -43,7 +43,7 @@ config({
|
|||||||
},
|
},
|
||||||
SomeContract: {
|
SomeContract: {
|
||||||
deployIf: (dependencies) => {
|
deployIf: (dependencies) => {
|
||||||
return dependencies.contract.MyToken.methods.isAvailable().call();
|
return dependencies.contracts.MyToken.methods.isAvailable().call();
|
||||||
},
|
},
|
||||||
args: [
|
args: [
|
||||||
["$MyToken2", "$SimpleStorage"],
|
["$MyToken2", "$SimpleStorage"],
|
||||||
@ -91,7 +91,7 @@ describe("Token", function() {
|
|||||||
assert.strictEqual(result, MyToken.options.address);
|
assert.strictEqual(result, MyToken.options.address);
|
||||||
});
|
});
|
||||||
|
|
||||||
xit("should not deploy if deployIf returns false", function() {
|
it("should not deploy if deployIf returns false", function() {
|
||||||
assert.ok(!SomeContract.options.address);
|
assert.ok(!SomeContract.options.address);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -749,7 +749,7 @@ class EmbarkController {
|
|||||||
engine.registerModuleGroup("contracts");
|
engine.registerModuleGroup("contracts");
|
||||||
engine.registerModuleGroup("pipeline");
|
engine.registerModuleGroup("pipeline");
|
||||||
engine.registerModuleGroup("tests", options);
|
engine.registerModuleGroup("tests", options);
|
||||||
engine.registerModulePackage('embark-deploy-tracker', {plugins: engine.plugins});
|
engine.registerModulePackage('embark-deploy-tracker', {plugins: engine.plugins, trackContracts: false});
|
||||||
|
|
||||||
engine.startEngine(next);
|
engine.startEngine(next);
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user