Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

Commit

Permalink
fix: update tests to handle silent output (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAFrench authored Mar 10, 2023
1 parent 1d499da commit f725b74
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/6_array.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,26 +36,26 @@ test("nargo builds noir/test/test_data/6_array sucessfully", async () => {
await within(async () => {
cd("./noir/crates/nargo/tests/test_data/6_array");
const command = `${nargoBin} check`;
const processOutput = (await $`${command}`).toString();
assert.match(processOutput, "Constraint system successfully built!");

await $`${command}`.nothrow();
});
});

test("nargo creates proof noir/test/test_data/6_array sucessfully", async () => {
await within(async () => {
cd("./noir/crates/nargo/tests/test_data/6_array");
const command = `${nargoBin} prove 6_array`;
const processOutput = (await $`${command}`).toString();
assert.match(processOutput, /.*Proof successfully created.*/i);

await $`${command}`.nothrow();
});
});

test("nargo verifies proof noir/test/test_data/6_array sucessfully", async () => {
await within(async () => {
cd("./noir/crates/nargo/tests/test_data/6_array");
const command = `${nargoBin} verify 6_array`;
const processOutput = (await $`${command}`).toString();
assert.match(processOutput, /.*Proof verified : true.*/i);

await $`${command}`.nothrow();
});
});

Expand Down

0 comments on commit f725b74

Please sign in to comment.