From fe3e604fec149a9393f5a1a311c68d97e35c7643 Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Tue, 29 Oct 2019 11:50:32 -0400 Subject: [PATCH] fix(@embark/test-runner): fix test contracts being tracked --- dapps/tests/app/test/simple_storage_spec.js | 4 ++-- dapps/tests/app/test/token_spec.js | 4 ++-- packages/embark/src/cmd/cmd_controller.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dapps/tests/app/test/simple_storage_spec.js b/dapps/tests/app/test/simple_storage_spec.js index 6a32da18c..d03df3d24 100644 --- a/dapps/tests/app/test/simple_storage_spec.js +++ b/dapps/tests/app/test/simple_storage_spec.js @@ -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); }); diff --git a/dapps/tests/app/test/token_spec.js b/dapps/tests/app/test/token_spec.js index 74fc28e37..b22f442df 100644 --- a/dapps/tests/app/test/token_spec.js +++ b/dapps/tests/app/test/token_spec.js @@ -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); }); diff --git a/packages/embark/src/cmd/cmd_controller.js b/packages/embark/src/cmd/cmd_controller.js index 360769308..6e8cd9f01 100644 --- a/packages/embark/src/cmd/cmd_controller.js +++ b/packages/embark/src/cmd/cmd_controller.js @@ -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); },