Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Trivo25 committed Oct 18, 2024
1 parent 17c658f commit 5eb9bcb
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions src/lib/proof-system/proof-system.unit-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,13 @@ it('pickles rule creation: nested proof', async () => {
}

// collect method interface
let methodIntf = sortMethodArguments('mock', 'main', [NestedProof2], Proof);
let methodIntf = sortMethodArguments(
'mock',
'main',
[NestedProof2],
undefined,
Proof
);

expect(methodIntf).toEqual({
methodName: 'main',
Expand Down Expand Up @@ -171,7 +177,13 @@ it('pickles rule creation: nested proof', async () => {

it('fails with more than two (nested) proofs', async () => {
expect(() => {
sortMethodArguments('mock', 'main', [NestedProof2, NestedProof], Proof);
sortMethodArguments(
'mock',
'main',
[NestedProof2, NestedProof],
undefined,
Proof
);
}).toThrowError('mock.main() has more than two proof arguments');
});

Expand Down

0 comments on commit 5eb9bcb

Please sign in to comment.