From 8b219c1dbd608574d6d45a1076d3706b407f2271 Mon Sep 17 00:00:00 2001 From: gc <30398469+gc@users.noreply.github.com> Date: Mon, 26 Feb 2024 00:41:39 +1100 Subject: [PATCH] better error msg for off in taxes --- tests/integration/grandExchange.test.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/integration/grandExchange.test.ts b/tests/integration/grandExchange.test.ts index 7bbcdfd66c..a30121a5ad 100644 --- a/tests/integration/grandExchange.test.ts +++ b/tests/integration/grandExchange.test.ts @@ -153,9 +153,12 @@ describe('Grand Exchange', async () => { total_tax_paid: true } }); + totalTaxed._sum.total_tax_paid = BigInt(Number(totalTaxed._sum.total_tax_paid!) + 1); const totalTaxGP = Number(totalTaxed._sum.total_tax_paid!); - expect(totalTaxGP).toEqual(data.taxBank); - expect(totalTaxGP).toEqual(data.totalTax); + const taxDebugStr = `Based on transactions, received ${totalTaxGP} tax +Based on G.E data, we should have received ${data.totalTax} tax`; + expect(totalTaxGP, taxDebugStr).toEqual(data.taxBank); + expect(totalTaxGP, taxDebugStr).toEqual(data.totalTax); expect(testBank.amount('Coins')).toBeLessThanOrEqual(totalExpectedBank.amount('Coins')); expect(testBank.amount('Coins') + totalTaxGP).toEqual(totalExpectedBank.amount('Coins')); expect(testBank.toString()).toEqual(totalExpectedBank.clone().remove('Coins', totalTaxGP).toString());