Skip to content

Commit

Permalink
chore: update Mattr test to perform some tests on the VC using the Cr…
Browse files Browse the repository at this point in the history
…edential Mapper and to also check the format
  • Loading branch information
nklomp committed Sep 4, 2023
1 parent 5b8552f commit ff30029
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/client/lib/__tests__/MattrE2E.spec.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { CredentialMapper } from '@sphereon/ssi-types'
import { fetch } from 'cross-fetch';
import { Alg, AuthzFlowType, Jwt } from '@sphereon/oid4vci-common';
import { importJWK, JWK, SignJWT } from 'jose';
Expand Down Expand Up @@ -50,6 +51,9 @@ describe('OID4VCI-Client using Mattr issuer should', () => {
}
})
expect(credentialResponse.credential).toBeDefined()
const wrappedVC = CredentialMapper.toWrappedVerifiableCredential(credentialResponse.credential!)
expect(format.startsWith(wrappedVC.format)).toEqual(true)

}

it(
Expand Down

0 comments on commit ff30029

Please sign in to comment.