From fc376893313b31e00200d1864bd546718e14ef87 Mon Sep 17 00:00:00 2001 From: Tom French Date: Tue, 19 Dec 2023 09:26:32 +0000 Subject: [PATCH] chore: fix browser test --- tooling/noirc_abi_wasm/test/browser/structs.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tooling/noirc_abi_wasm/test/browser/structs.test.ts b/tooling/noirc_abi_wasm/test/browser/structs.test.ts index 519ffee511a..84352d986ab 100644 --- a/tooling/noirc_abi_wasm/test/browser/structs.test.ts +++ b/tooling/noirc_abi_wasm/test/browser/structs.test.ts @@ -17,7 +17,7 @@ it('correctly handles struct inputs', async () => { const struct_array_arg: MyStruct[] = inputs.struct_array_arg as MyStruct[]; const nested_struct_arg: MyNestedStruct = inputs.nested_struct_arg as MyNestedStruct; - expect(BigInt(decoded_inputs.inputs.struct_arg)).to.be.equal(BigInt(struct_arg.foo)); + expect(BigInt(decoded_inputs.inputs.struct_arg.foo)).to.be.equal(BigInt(struct_arg.foo)); expect(BigInt(decoded_inputs.inputs.struct_array_arg[0].foo)).to.be.equal(BigInt(struct_array_arg[0].foo)); expect(BigInt(decoded_inputs.inputs.struct_array_arg[1].foo)).to.be.equal(BigInt(struct_array_arg[1].foo)); expect(BigInt(decoded_inputs.inputs.struct_array_arg[2].foo)).to.be.equal(BigInt(struct_array_arg[2].foo));