Skip to content

Commit

Permalink
fix: fixed sd jwt test with version 13
Browse files Browse the repository at this point in the history
  • Loading branch information
sksadjad committed May 13, 2024
1 parent 06117c0 commit dcf7439
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/client/lib/__tests__/SdJwt.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ describe('sd-jwt vc', () => {
const supported = client.getCredentialsSupported('vc+sd-jwt');
expect(supported).toEqual({ SdJwtCredentialId: { format: 'vc+sd-jwt', id: 'SdJwtCredentialId', vct: 'SdJwtCredential' } });

const offered = supported[0] as CredentialSupportedSdJwtVc;
const offered = supported['SdJwtCredentialId'] as CredentialSupportedSdJwtVc;

nock(issuerMetadata.token_endpoint as string)
.post('/')
Expand All @@ -122,7 +122,7 @@ describe('sd-jwt vc', () => {
});
});

await client.acquireAccessToken({});
await client.acquireAccessToken({pin: '123'});

nock(issuerMetadata.credential_endpoint as string)
.post('/')
Expand Down

0 comments on commit dcf7439

Please sign in to comment.