Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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