From dbaf8c8c62141f5151576f6b5842ba4b8d42f8bb Mon Sep 17 00:00:00 2001 From: Andrew Jones Date: Fri, 8 Dec 2023 15:56:09 +0000 Subject: [PATCH] Use mockCredential() in validFrom & validUntil same time test. --- test/10-verify.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/10-verify.spec.js b/test/10-verify.spec.js index 8c42546b..7057ed94 100644 --- a/test/10-verify.spec.js +++ b/test/10-verify.spec.js @@ -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;