Skip to content

Commit

Permalink
fixed unsupported versions test
Browse files Browse the repository at this point in the history
  • Loading branch information
mllwchrry committed Nov 4, 2024
1 parent 56c044a commit 8687f02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unit/core/compile/circom-compiler-factory.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,12 @@ describe("CircomCompilerFactory", () => {

it("should correctly throw error if pass invalid version", async function () {
let invalidVersion = "2.1.10";
let reason = `Unsupported Circom compiler version - ${invalidVersion}. Please provide another version.`;
let reason = `Unsupported WASM version - ${invalidVersion}`;

createCircomCompilerFactory();
await expect(CircomCompilerFactory!.createCircomCompiler(invalidVersion, true)).to.be.rejectedWith(reason);

invalidVersion = "2.2.0";
invalidVersion = "2.2.1";
reason = `Unsupported Circom compiler version - ${invalidVersion}. Please provide another version.`;

await expect(CircomCompilerFactory!.createCircomCompiler(invalidVersion, false)).to.be.rejectedWith(reason);
Expand Down

0 comments on commit 8687f02

Please sign in to comment.