mirror of
https://github.com/haveno-dex/haveno-ts.git
synced 2024-12-24 23:09:26 -05:00
fix payment account unique name test
This commit is contained in:
parent
3e637aa8c1
commit
e3f114eb66
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user