diff --git a/packages/agent/src/actor.test.ts b/packages/agent/src/actor.test.ts index cdb845b3f..e79002a93 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 02964c4fc..10759e022 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.