Skip to content

Commit

Permalink
Merge branch 'main' into feat/take-snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
peterpeterparker authored Nov 20, 2024
2 parents 90349a8 + 51d6b46 commit bf0c05c
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions packages/ic-management/src/ic-management.canister.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ describe("ICManagementCanister", () => {

const call = () => icManagement.createCanister();

expect(call).rejects.toThrowError(Error);
await expect(call).rejects.toThrow(error);
});
});

Expand Down Expand Up @@ -203,7 +203,7 @@ describe("ICManagementCanister", () => {
settings: mockCanisterSettings,
});

expect(call).rejects.toThrowError(Error);
await expect(call).rejects.toThrow(error);
});
});

Expand Down Expand Up @@ -249,7 +249,7 @@ describe("ICManagementCanister", () => {

const call = () => icManagement.installCode(params);

expect(call).rejects.toThrowError(Error);
await expect(call).rejects.toThrow(error);
});
});

Expand Down Expand Up @@ -278,7 +278,7 @@ describe("ICManagementCanister", () => {
const call = () =>
icManagement.uninstallCode({ canisterId: mockCanisterId });

expect(call).rejects.toThrowError(Error);
await expect(call).rejects.toThrow(error);
});
});

Expand All @@ -305,7 +305,7 @@ describe("ICManagementCanister", () => {

const call = () => icManagement.startCanister(mockCanisterId);

expect(call).rejects.toThrowError(Error);
await expect(call).rejects.toThrow(error);
});
});

Expand All @@ -332,7 +332,7 @@ describe("ICManagementCanister", () => {

const call = () => icManagement.stopCanister(mockCanisterId);

expect(call).rejects.toThrowError(Error);
await expect(call).rejects.toThrow(error);
});
});

Expand Down Expand Up @@ -381,7 +381,7 @@ describe("ICManagementCanister", () => {

const call = () => icManagement.canisterStatus(mockCanisterId);

expect(call).rejects.toThrowError(Error);
await expect(call).rejects.toThrow(error);
});
});

Expand All @@ -408,7 +408,7 @@ describe("ICManagementCanister", () => {

const call = () => icManagement.deleteCanister(mockCanisterId);

expect(call).rejects.toThrowError(Error);
await expect(call).rejects.toThrow(error);
});
});

Expand Down Expand Up @@ -446,13 +446,13 @@ describe("ICManagementCanister", () => {
it("throws Error", async () => {
const error = new Error("Test");
const service = mock<IcManagementService>();
service.delete_canister.mockRejectedValue(error);
service.provisional_create_canister_with_cycles.mockRejectedValue(error);

const icManagement = await createICManagement(service);

const call = () => icManagement.provisionalCreateCanisterWithCycles();

expect(call).rejects.toThrowError(Error);
await expect(call).rejects.toThrow(error);
});
});

Expand Down Expand Up @@ -489,7 +489,7 @@ describe("ICManagementCanister", () => {

const call = () => icManagement.uploadChunk(params);

expect(call).rejects.toThrowError(Error);
await expect(call).rejects.toThrow(error);
});
});

Expand Down Expand Up @@ -520,7 +520,7 @@ describe("ICManagementCanister", () => {

const call = () => icManagement.clearChunkStore(params);

expect(call).rejects.toThrowError(Error);
await expect(call).rejects.toThrow(error);
});
});

Expand Down Expand Up @@ -558,7 +558,7 @@ describe("ICManagementCanister", () => {

const call = () => icManagement.storedChunks(params);

expect(call).rejects.toThrowError(Error);
await expect(call).rejects.toThrow(error);
});
});

Expand Down Expand Up @@ -669,7 +669,7 @@ describe("ICManagementCanister", () => {

const call = () => icManagement.installChunkedCode(params);

expect(call).rejects.toThrowError(Error);
await expect(call).rejects.toThrow(error);
});
});

Expand Down Expand Up @@ -717,7 +717,7 @@ describe("ICManagementCanister", () => {

const call = () => icManagement.fetchCanisterLogs(mockCanisterId);

expect(call).rejects.toThrowError(Error);
await expect(call).rejects.toThrow(error);
});
});

Expand Down

0 comments on commit bf0c05c

Please sign in to comment.