From e3f114eb664bb85b3a8853e465ba1987cb70635f Mon Sep 17 00:00:00 2001 From: napoly Date: Mon, 13 Feb 2023 21:33:43 +0100 Subject: [PATCH] fix payment account unique name test --- src/HavenoClient.test.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/HavenoClient.test.ts b/src/HavenoClient.test.ts index b9484c41..9ab29e28 100644 --- a/src/HavenoClient.test.ts +++ b/src/HavenoClient.test.ts @@ -1108,9 +1108,11 @@ test("Can create crypto payment accounts (CI)", async () => { .toThrow('123 is not a valid eth address'); // test address duplicity - await expect(async () => { await user1.createCryptoPaymentAccount("My second account", "ABC", "666"); }) + await user1.createCryptoPaymentAccount("Unique account name", TestConfig.cryptoAddresses[0].currencyCode, TestConfig.cryptoAddresses[0].address) + + await expect(async () => { await user1.createCryptoPaymentAccount("Unique account name", TestConfig.cryptoAddresses[0].currencyCode, TestConfig.cryptoAddresses[0].address); }) .rejects - .toThrow("Account 'My second account' is already taken"); + .toThrow("Account 'Unique account name' is already taken"); function testCryptoPaymentAccountEquals(paymentAccount: PaymentAccount, testAccount: any, name: string) { expect(paymentAccount.getAccountName()).toEqual(name);