Skip to content

Commit

Permalink
fix primitive types tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lastmjs committed Oct 30, 2024
1 parent 4bc78b7 commit 6359f13
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified canister_templates/experimental.wasm
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ export function getTests(
const rejectionMessage = 'Anything you want';
const canisterId = '[a-z2-7-]{27}';
const expectedErrorMessage = new RegExp(
`Call failed:\\s*Canister: ${canisterId}\\s*Method: getEmpty \\(query\\)\\s*"Status": "rejected"\\s*"Code": "CanisterError"\\s*"Message": "IC0503: Error from Canister ${canisterId}: Canister called \`ic0.trap\` with message: Uncaught Error: ${rejectionMessage}.*"`
`Call failed:\\s*Canister: ${canisterId}\\s*Method: getEmpty \\(query\\)\\s*"Status": "rejected"\\s*"Code": "CanisterError"\\s*"Message": "IC0503: Error from Canister ${canisterId}: Canister called \`ic0.trap\` with message: Uncaught Error: Error: ${rejectionMessage}.*"`
);
await expect(primitiveTypesCanister.getEmpty()).rejects.toThrow(
expectedErrorMessage
Expand Down

0 comments on commit 6359f13

Please sign in to comment.