From eab0c133d1cf42729869cc5b8c3f755475f918ac Mon Sep 17 00:00:00 2001 From: Ricardo Guilherme Schmidt <3esmit@gmail.com> Date: Sun, 13 May 2018 17:54:05 -0300 Subject: [PATCH] fix tests --- test/testtoken.js | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/test/testtoken.js b/test/testtoken.js index 2dd3fb7..08f8794 100644 --- a/test/testtoken.js +++ b/test/testtoken.js @@ -1,34 +1,34 @@ -describe("TestToken", function() { +describe("TestToken", async function() { this.timeout(0); var accountsArr; + before(function(done) { this.timeout(0); var contractsConfig = { "TestToken": { } }; - EmbarkSpec.deployAll(contractsConfig, (accounts) => { accountsArr = accounts; done() }); - }); - - - it("should start totalSupply 0", async function() { - let result = await TestToken.methods.totalSupply().call(); - assert.equal(result, 0); + EmbarkSpec.deployAll(contractsConfig, async function(accounts) { + accountsArr = accounts + for(i=0;i