From 6735a3ccd61c6f2921bec2cd3ca91b1964f86769 Mon Sep 17 00:00:00 2001 From: Rudy Godoy Date: Thu, 20 Jul 2017 16:01:41 -0500 Subject: [PATCH] Renamed tAMOUNT to much friendly amount --- test/PullPayment.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/PullPayment.js b/test/PullPayment.js index 8df6d8f20..f8106464a 100644 --- a/test/PullPayment.js +++ b/test/PullPayment.js @@ -2,10 +2,10 @@ var PullPaymentMock = artifacts.require("./helpers/PullPaymentMock.sol"); contract('PullPayment', function(accounts) { let ppce; - let tAMOUNT = 17*1e18; + let amount = 17*1e18; beforeEach(async function() { - ppce = await PullPaymentMock.new({value: tAMOUNT}); + ppce = await PullPaymentMock.new({value: amount}); }); it("can't call asyncSend externally", async function() { @@ -50,13 +50,13 @@ contract('PullPayment', function(accounts) { let payee = accounts[1]; let initialBalance = web3.eth.getBalance(payee); - let call1 = await ppce.callSend(payee, tAMOUNT); + let call1 = await ppce.callSend(payee, amount); let payment1 = await ppce.payments(payee); - assert.equal(payment1, tAMOUNT); + assert.equal(payment1, amount); let totalPayments = await ppce.totalPayments(); - assert.equal(totalPayments, tAMOUNT); + assert.equal(totalPayments, amount); let withdraw = await ppce.withdrawPayments({from: payee}); let payment2 = await ppce.payments(payee); @@ -66,7 +66,7 @@ contract('PullPayment', function(accounts) { assert.equal(totalPayments, 0); let balance = web3.eth.getBalance(payee); - assert(Math.abs(balance-initialBalance-tAMOUNT) < 1e16); + assert(Math.abs(balance-initialBalance-amount) < 1e16); }); });