From dcf743945bcd53436e0758b1604e2a31d37a39fe Mon Sep 17 00:00:00 2001 From: sksadjad Date: Mon, 13 May 2024 09:51:35 +0200 Subject: [PATCH] fix: fixed sd jwt test with version 13 --- packages/client/lib/__tests__/SdJwt.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/client/lib/__tests__/SdJwt.spec.ts b/packages/client/lib/__tests__/SdJwt.spec.ts index 4e90364c..59c88940 100644 --- a/packages/client/lib/__tests__/SdJwt.spec.ts +++ b/packages/client/lib/__tests__/SdJwt.spec.ts @@ -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('/') @@ -122,7 +122,7 @@ describe('sd-jwt vc', () => { }); }); - await client.acquireAccessToken({}); + await client.acquireAccessToken({pin: '123'}); nock(issuerMetadata.credential_endpoint as string) .post('/')