Skip to content

Commit

Permalink
expect instead of throw
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Jan 26, 2024
1 parent 4049e0e commit bba328d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions yarn-project/noir-protocol-circuits/src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit bba328d

Please sign in to comment.