From 851ebcf6ecc3c0249711f139e056145f922ac19c Mon Sep 17 00:00:00 2001 From: Andy Tudhope Date: Tue, 9 Apr 2019 16:21:40 +0200 Subject: [PATCH] Readability & cleanup --- test/dappstore_spec.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/dappstore_spec.js b/test/dappstore_spec.js index 1cb7ed5..c3c78c4 100644 --- a/test/dappstore_spec.js +++ b/test/dappstore_spec.js @@ -1,4 +1,3 @@ -/*global contract, config, it, embark, web3, before, describe, beforeEach*/ const TestUtils = require("../utils/testUtils"); const DAppStore = require('Embark/contracts/DAppStore'); @@ -67,8 +66,7 @@ contract("DAppStore", function () { // Check the DApp Store actually receives the SNT! let bal_receipt = await SNT.methods.balanceOf(DAppStore.options.address).call(); - let expected_bal = amount; - assert.strictEqual(parseInt(bal_receipt, 10), expected_bal); + assert.strictEqual(parseInt(bal_receipt, 10), amount); // Having received the SNT, check that it updates the particular DApp balanc assert.strictEqual(parseInt(receipt.balance, 10), amount);