diff --git a/web/cashtab/src/utils/__tests__/transactions.test.js b/web/cashtab/src/utils/__tests__/transactions.test.js --- a/web/cashtab/src/utils/__tests__/transactions.test.js +++ b/web/cashtab/src/utils/__tests__/transactions.test.js @@ -150,7 +150,8 @@ destinationAddress, null, ); - expect(nullValuesSendBch).rejects.toThrow( + + await expect(nullValuesSendBch).rejects.toThrow( new Error('Invalid singleSendValue'), ); }); @@ -173,7 +174,7 @@ .minus(new BigNumber('0.00000001')) .toString(), ); - expect(failedSendBch).rejects.toThrow(new Error('dust')); + await expect(failedSendBch).rejects.toThrow(new Error('dust')); }); it("Throws error attempting to burn an eToken ID that is not within the wallet's utxo", async () => { @@ -281,8 +282,7 @@ }); it('creates a token correctly', async () => { - const { expectedTxId, expectedHex, wallet, configObj } = - createTokenMock; + const { expectedTxId, wallet, configObj } = createTokenMock; const chronik = new ChronikClient( 'https://FakeChronikUrlToEnsureMocksOnly.com', );