Skip to content

Commit

Permalink
Use toISOString.slice for expectedIssuanceDate.
Browse files Browse the repository at this point in the history
  • Loading branch information
aljones15 committed Dec 6, 2023
1 parent 51b7d91 commit b34181d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/10-verify.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,7 @@ describe('vc.issue()', () => {
const credential = jsonld.clone(mockCredential);
delete credential.issuanceDate;
const now = new Date();
const jsonDate = now.toJSON();
const expectedIssuanceDate = `${jsonDate.slice(0, jsonDate.length - 5)}Z`;
const expectedIssuanceDate = now.toISOString().slice(0, -5) + 'Z';
const verifiableCredential = await vc.issue({
credential,
suite,
Expand Down

0 comments on commit b34181d

Please sign in to comment.