Skip to content

Commit

Permalink
fix: additional test
Browse files Browse the repository at this point in the history
  • Loading branch information
elribonazo committed Apr 25, 2024
1 parent 951efd0 commit 69a5e5a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/pollux/Pollux.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1757,6 +1757,17 @@ describe("Pollux", () => {
);
})

it("Should throw an error if the actual presentationSubmission options presentationDefinitionRequest is not an undefined", async () => {
expect(pollux.verifyPresentationSubmission(
{ presentation_submission: {}, verifiablePresentation: [] } as any,
{
presentationDefinitionRequest: undefined
}
)).to.eventually.be.rejectedWith(
`VerifyPresentationSubmission options are invalid`
);
})

it("Should Verify false when the Credential subject does not provide required field", async () => {
const issuerSeed = apollo.createRandomSeed().seed;
const holderSeed = apollo.createRandomSeed().seed;
Expand Down

0 comments on commit 69a5e5a

Please sign in to comment.