fix(@embark/test-runner): fix test contracts being tracked

This commit is contained in:
Jonathan Rainville 2019-10-29 11:50:32 -04:00 committed by Michael Bradley
parent 72278aad72
commit fe3e604fec
3 changed files with 5 additions and 5 deletions

View File

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

View File

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

View File

@ -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);
},