Readability & cleanup

This commit is contained in:
Andy Tudhope 2019-04-09 16:25:58 +02:00
parent 851ebcf6ec
commit 6ea2cc1813
No known key found for this signature in database
GPG Key ID: 02A3DFA93BF26AD2
1 changed files with 3 additions and 3 deletions

View File

@ -68,7 +68,7 @@ contract("DAppStore", function () {
let bal_receipt = await SNT.methods.balanceOf(DAppStore.options.address).call();
assert.strictEqual(parseInt(bal_receipt, 10), amount);
// Having received the SNT, check that it updates the particular DApp balanc
// Having received the SNT, check that it updates the particular DApp's storage values
assert.strictEqual(parseInt(receipt.balance, 10), amount);
let max = await DAppStore.methods.max().call();
@ -131,7 +131,7 @@ contract("DAppStore", function () {
let bal_effect = parseInt(after, 10) - parseInt(before, 10);
assert.strictEqual(bal_effect, amount);
// Having received the SNT, check that it updates the particular DApp balance
// Having received the SNT, check that it updates the particular DApp's storage values
let upvotedBalance = parseInt(initial.balance, 10) + amount
assert.strictEqual(parseInt(receipt.balance, 10), upvotedBalance);
@ -288,7 +288,7 @@ contract("DAppStore", function () {
let bal_effect = parseInt(after, 10) - parseInt(before, 10);
assert.strictEqual(bal_effect, amount);
// Having received the SNT, check that it updates the particular DApp balance
// Having received the SNT, check that it updates the particular DApp's storage values
let upvotedBalance = parseInt(initial.balance, 10) + amount
assert.strictEqual(parseInt(receipt.balance, 10), upvotedBalance);