Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
nitro-neal committed Mar 18, 2024
1 parent 6efff87 commit 287357c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/credentials/tests/presentation-exchange.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,14 @@ describe('PresentationExchange', () => {
});
});

it('should return the selected verifiable credentials', () => {
const actualSelectedVcJwts = PresentationExchange.selectCredentials({
vcJwts: [btcCredentialJwt],
presentationDefinition
});
expect(actualSelectedVcJwts).to.deep.equal([btcCredentialJwt]);
});

it('should return 0 verifiable credentials when they dont match the pd', async () => {
const vc = await VerifiableCredential.create({
type : 'Random',
Expand Down

0 comments on commit 287357c

Please sign in to comment.