From 3cd32d8d6ecf42a994c489362da2bd79cb807b80 Mon Sep 17 00:00:00 2001 From: Igor Shadurin Date: Wed, 20 Sep 2023 11:51:27 +0300 Subject: [PATCH] fix: username availability error text --- src/account/account-data.ts | 2 +- test/integration/fdp-class.browser.spec.ts | 2 +- test/integration/fdp-class.spec.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/account/account-data.ts b/src/account/account-data.ts index 61134820..c4038570 100644 --- a/src/account/account-data.ts +++ b/src/account/account-data.ts @@ -138,7 +138,7 @@ export class AccountData { assertPassword(password) if (await this.ens.isUsernameAvailable(username)) { - throw new Error(`Username "${username}" does not exists`) + throw new Error(`Username "${username}" does not exist`) } const publicKey = await this.ens.getPublicKey(username) diff --git a/test/integration/fdp-class.browser.spec.ts b/test/integration/fdp-class.browser.spec.ts index ce6f4f1a..6a2d5b60 100644 --- a/test/integration/fdp-class.browser.spec.ts +++ b/test/integration/fdp-class.browser.spec.ts @@ -237,7 +237,7 @@ describe('Fair Data Protocol class - in browser', () => { await window.shouldFail( fdp.account.login(fakeUser.username, fakeUser.password), - `Username "${fakeUser.username}" does not exists`, + `Username "${fakeUser.username}" does not exist`, ) }, jsonFakeUser) }) diff --git a/test/integration/fdp-class.spec.ts b/test/integration/fdp-class.spec.ts index 4ce7e1db..b84a4c3c 100644 --- a/test/integration/fdp-class.spec.ts +++ b/test/integration/fdp-class.spec.ts @@ -136,7 +136,7 @@ describe('Fair Data Protocol class', () => { const fakeUser = generateUser(fdp) await expect(fdp.account.login(fakeUser.username, fakeUser.password)).rejects.toThrow( - `Username "${fakeUser.username}" does not exists`, + `Username "${fakeUser.username}" does not exist`, ) })