Skip to content

Commit

Permalink
fix: Tests to allow multiple subjects for credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
nklomp committed Sep 28, 2022
1 parent 110d78e commit 52b1662
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/ssi-types/__tests__/wrapped-claims.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ describe('Wrapped VC claims', () => {

it('should throw an error if expiration date and exp are different in JWT vc', () => {
const jwtVc: IVerifiableCredential = getFileAsJson('packages/ssi-types/__tests__/vc_vp_examples/vp/vp_general.json').verifiableCredential[0]
const subject = <ICredentialSubject>jwtVc['vc' as keyof IVerifiableCredential].credentialSubject
jwtVc['exp' as keyof IVerifiableCredential] = (+new Date()).toString()
;(<ICredential>jwtVc['vc' as keyof IVerifiableCredential]).expirationDate = (+new Date(
(jwtVc['exp' as keyof IVerifiableCredential] as string) + 2
Expand Down

0 comments on commit 52b1662

Please sign in to comment.