Skip to content

Commit

Permalink
Correct assertions on now between validFrom & validUntil.
Browse files Browse the repository at this point in the history
  • Loading branch information
aljones15 committed Nov 28, 2023
1 parent e6ecd59 commit f7f3509
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions test/10-verify.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -842,11 +842,8 @@ for(const [version, mockCredential] of versionedCredentials) {
} catch(e) {
error = e;
}
should.exist(error,
'Should throw error when "now" is before "issuanceDate"');
error.message.should.contain(
'The current date time (2022-06-30T19:21:25.000Z) is before the ' +
'"issuanceDate" (2022-10-31T19:21:25.000Z).');
should.not.exist(error,
'Should NOT throw when now is between "validFrom" & "validUntil"');
});
}
it('should reject if "credentialSubject" is empty', () => {
Expand Down

0 comments on commit f7f3509

Please sign in to comment.