mirror of https://github.com/embarklabs/embark.git
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');
|
||||
let accounts;
|
||||
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();
|
||||
assert.strictEqual(result, SimpleStorage.options.address);
|
||||
});
|
||||
|
|
|
@ -43,7 +43,7 @@ config({
|
|||
},
|
||||
SomeContract: {
|
||||
deployIf: (dependencies) => {
|
||||
return dependencies.contract.MyToken.methods.isAvailable().call();
|
||||
return dependencies.contracts.MyToken.methods.isAvailable().call();
|
||||
},
|
||||
args: [
|
||||
["$MyToken2", "$SimpleStorage"],
|
||||
|
@ -91,7 +91,7 @@ describe("Token", function() {
|
|||
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);
|
||||
});
|
||||
|
||||
|
|
|
@ -749,7 +749,7 @@ class EmbarkController {
|
|||
engine.registerModuleGroup("contracts");
|
||||
engine.registerModuleGroup("pipeline");
|
||||
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);
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue