From e21c9d9d97536c750b988187f224259849a7b20c Mon Sep 17 00:00:00 2001 From: jennifertrin Date: Sat, 7 Oct 2023 17:54:16 -0400 Subject: [PATCH] chore: correct spelling mistake --- packages/agent/src/actor.test.ts | 2 +- packages/agent/src/actor.ts | 4 ++-- packages/auth-client/src/index.test.ts | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/agent/src/actor.test.ts b/packages/agent/src/actor.test.ts index b1f56fffa..c117c3421 100644 --- a/packages/agent/src/actor.test.ts +++ b/packages/agent/src/actor.test.ts @@ -336,7 +336,7 @@ describe('makeActor', () => { const { Actor } = await importActor(); const config = { agent: httpAgent } as any as ActorConfig; expect(() => Actor.createActor(actorInterface, config)).toThrowError( - 'Canister ID is required, but recieved undefined instead. If you are using automatically generated declarations, this may be because your application is not setting the canister ID in process.env correctly.', + 'Canister ID is required, but received undefined instead. If you are using automatically generated declarations, this may be because your application is not setting the canister ID in process.env correctly.', ); }); }); diff --git a/packages/agent/src/actor.ts b/packages/agent/src/actor.ts index 7494fd9ce..6d1947314 100644 --- a/packages/agent/src/actor.ts +++ b/packages/agent/src/actor.ts @@ -287,7 +287,7 @@ export class Actor { constructor(config: ActorConfig) { if (!config.canisterId) throw new AgentError( - `Canister ID is required, but recieved ${typeof config.canisterId} instead. If you are using automatically generated declarations, this may be because your application is not setting the canister ID in process.env correctly.`, + `Canister ID is required, but received ${typeof config.canisterId} instead. If you are using automatically generated declarations, this may be because your application is not setting the canister ID in process.env correctly.`, ); const canisterId = typeof config.canisterId === 'string' @@ -322,7 +322,7 @@ export class Actor { ): ActorSubclass { if (!configuration.canisterId) { throw new AgentError( - `Canister ID is required, but recieved ${typeof configuration.canisterId} instead. If you are using automatically generated declarations, this may be because your application is not setting the canister ID in process.env correctly.`, + `Canister ID is required, but received ${typeof configuration.canisterId} instead. If you are using automatically generated declarations, this may be because your application is not setting the canister ID in process.env correctly.`, ); } return new (this.createActorClass(interfaceFactory))( diff --git a/packages/auth-client/src/index.test.ts b/packages/auth-client/src/index.test.ts index 4e249d1ba..516d98a22 100644 --- a/packages/auth-client/src/index.test.ts +++ b/packages/auth-client/src/index.test.ts @@ -532,7 +532,7 @@ describe('Auth Client login', () => { expect(idpWindow.close).toBeCalled(); }); - it('should call onError if recieved an invalid success message', done => { + it('should call onError if received an invalid success message', done => { setup({ onAuthRequest: () => { idpMock.send({ @@ -556,7 +556,7 @@ describe('Auth Client login', () => { }); }); - it('should call onSuccess if recieved a valid success message', done => { + it('should call onSuccess if received a valid success message', done => { setup({ onAuthRequest: () => { // Send a valid request.