Skip to content

Commit

Permalink
chore: correct spelling mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
jennifertrin committed Oct 7, 2023
1 parent 75fcb03 commit e21c9d9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/agent/src/actor.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.',
);
});
});
Expand Down
4 changes: 2 additions & 2 deletions packages/agent/src/actor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -322,7 +322,7 @@ export class Actor {
): ActorSubclass<T> {
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))(
Expand Down
4 changes: 2 additions & 2 deletions packages/auth-client/src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand All @@ -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.
Expand Down

0 comments on commit e21c9d9

Please sign in to comment.