Skip to content

Commit

Permalink
test: update test expectations
Browse files Browse the repository at this point in the history
  • Loading branch information
alexghr committed Oct 27, 2023
1 parent 6d81604 commit 7fde200
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions compiler/wasm/test/browser/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ describe('noir wasm', () => {
const cliCircuit = await getPrecompiledSource(simpleScriptExpectedArtifact);

// We don't expect the hashes to match due to how `noir_wasm` handles dependencies
expect(wasmCircuit.bytecode).to.eq(cliCircuit.bytecode);
expect(wasmCircuit.abi).to.deep.eq(cliCircuit.abi);
expect(wasmCircuit.backend).to.eq(cliCircuit.backend);
expect(wasmCircuit.program.bytecode).to.eq(cliCircuit.bytecode);
expect(wasmCircuit.program.abi).to.deep.eq(cliCircuit.abi);
expect(wasmCircuit.program.backend).to.eq(cliCircuit.backend);
}).timeout(20e3); // 20 seconds
});

Expand Down Expand Up @@ -90,9 +90,9 @@ describe('noir wasm', () => {
const cliCircuit = await getPrecompiledSource(depsScriptExpectedArtifact);

// We don't expect the hashes to match due to how `noir_wasm` handles dependencies
expect(wasmCircuit.bytecode).to.eq(cliCircuit.bytecode);
expect(wasmCircuit.abi).to.deep.eq(cliCircuit.abi);
expect(wasmCircuit.backend).to.eq(cliCircuit.backend);
expect(wasmCircuit.program.bytecode).to.eq(cliCircuit.bytecode);
expect(wasmCircuit.program.abi).to.deep.eq(cliCircuit.abi);
expect(wasmCircuit.program.backend).to.eq(cliCircuit.backend);
}).timeout(20e3); // 20 seconds
});
});
12 changes: 6 additions & 6 deletions compiler/wasm/test/node/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ describe('noir wasm compilation', () => {
const cliCircuit = await getPrecompiledSource(simpleScriptExpectedArtifact);

// We don't expect the hashes to match due to how `noir_wasm` handles dependencies
expect(wasmCircuit.bytecode).to.eq(cliCircuit.bytecode);
expect(wasmCircuit.abi).to.deep.eq(cliCircuit.abi);
expect(wasmCircuit.backend).to.eq(cliCircuit.backend);
expect(wasmCircuit.program.bytecode).to.eq(cliCircuit.bytecode);
expect(wasmCircuit.program.abi).to.deep.eq(cliCircuit.abi);
expect(wasmCircuit.program.backend).to.eq(cliCircuit.backend);
}).timeout(10e3);
});

Expand Down Expand Up @@ -62,9 +62,9 @@ describe('noir wasm compilation', () => {
const cliCircuit = await getPrecompiledSource(depsScriptExpectedArtifact);

// We don't expect the hashes to match due to how `noir_wasm` handles dependencies
expect(wasmCircuit.bytecode).to.eq(cliCircuit.bytecode);
expect(wasmCircuit.abi).to.deep.eq(cliCircuit.abi);
expect(wasmCircuit.backend).to.eq(cliCircuit.backend);
expect(wasmCircuit.program.bytecode).to.eq(cliCircuit.bytecode);
expect(wasmCircuit.program.abi).to.deep.eq(cliCircuit.abi);
expect(wasmCircuit.program.backend).to.eq(cliCircuit.backend);
}).timeout(10e3);
});
});

0 comments on commit 7fde200

Please sign in to comment.