From b6ce1fca82ffef65ea288bb63a2ca65fb121c6bc Mon Sep 17 00:00:00 2001 From: Fabco Date: Wed, 31 Jul 2024 14:34:45 +0200 Subject: [PATCH] goo variable name --- tests/Bank.spec.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/Bank.spec.ts b/tests/Bank.spec.ts index f89831b..238e613 100644 --- a/tests/Bank.spec.ts +++ b/tests/Bank.spec.ts @@ -41,21 +41,21 @@ describe('[Bank]', () => { (user1 as SandboxContract).getSender(), toNano('0.05') ); - let bi = 50000000n; + let expectedBalanceContract = 50000000n; let i = 0; for (const transfer of transfers) { - bi += transfer.value; + expectedBalanceContract += transfer.value; await bankContract.sendTransfer( (user1 as SandboxContract).getSender(), { value: transfer.value, } ); - const bal = await bankContract.getBal(); - const diff = bi - bal; + const actualBalance = await bankContract.getBal(); + const diff = expectedBalanceContract - actualBalance; /* The last transfer is a 1B - transfer to user1 + transfer back to user1 */ if (i === transfers.length - 1) { expect(diff > 1000000000).toBe(true);