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/browser/fdp-class.browser.spec.ts b/test/integration/browser/fdp-class.browser.spec.ts index 06311294..4ecfc86b 100644 --- a/test/integration/browser/fdp-class.browser.spec.ts +++ b/test/integration/browser/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/node/fdp-class.spec.ts b/test/integration/node/fdp-class.spec.ts index 73bd8e45..a8500c17 100644 --- a/test/integration/node/fdp-class.spec.ts +++ b/test/integration/node/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`, ) })