Skip to content

Commit

Permalink
Ensure validUntil in past issuer test is in the past.
Browse files Browse the repository at this point in the history
  • Loading branch information
aljones15 committed Nov 28, 2023
1 parent 9fc225f commit 4a62c7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/10-verify.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@ for(const [version, mockCredential] of versionedCredentials) {
it('should issue "validUntil" in the past', async () => {
const credential = jsonld.clone(mockCredential);
credential.issuer = 'did:example:12345';
credential.validUntil = '2025-10-31T19:21:25Z';
const now = '2022-06-30T19:21:25Z';
credential.validUntil = '2022-10-31T19:21:25Z';
const now = '2025-06-30T19:21:25Z';
let error;
let result;
try {
Expand Down

0 comments on commit 4a62c7b

Please sign in to comment.