From bba328d97cb5d2e6266a1ef702a68bc24b981a33 Mon Sep 17 00:00:00 2001 From: benesjan Date: Fri, 26 Jan 2024 18:37:07 +0000 Subject: [PATCH] expect instead of throw --- yarn-project/noir-protocol-circuits/src/index.test.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/yarn-project/noir-protocol-circuits/src/index.test.ts b/yarn-project/noir-protocol-circuits/src/index.test.ts index 8a3219572d6..3fe9e1afbc3 100644 --- a/yarn-project/noir-protocol-circuits/src/index.test.ts +++ b/yarn-project/noir-protocol-circuits/src/index.test.ts @@ -42,9 +42,8 @@ describe('Private kernel', () => { const serialized = Buffer.from(readFileSync(filepath).toString(), 'hex'); const kernelInputs = PrivateKernelInputsInit.fromBuffer(serialized); - if (!kernelInputs.txRequest.txContext.isContractDeploymentTx) { - throw new Error('Test data is not for a contract deployment'); - } + // We check that the test data is for a contract deployment + expect(kernelInputs.txRequest.txContext.isContractDeploymentTx).toBe(true); const kernelOutputs = await executeInit(kernelInputs);