Skip to content

Commit

Permalink
Use mockCredential() in validFrom & validUntil same time test.
Browse files Browse the repository at this point in the history
  • Loading branch information
aljones15 committed Dec 8, 2023
1 parent 63bd36b commit dbaf8c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/10-verify.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -942,7 +942,7 @@ for(const [version, mockCredential] of versionedCredentials) {
});
it('should accept if "validFrom" & "validUntil" are the same time',
() => {
const credential = jsonld.clone(mockCredential);
const credential = mockCredential();
credential.issuer = 'did:example:12345';
const now = createSkewedTimeStamp({skewYear: 0});
credential.validFrom = now;
Expand Down

0 comments on commit dbaf8c8

Please sign in to comment.