فینورا پرو - سامانه جامع حسابداری و صدور فاکتور

test(A06): account for default Date.now on omitted argument

davoodmehraban89 committed Oct 19, 2026 at 10:47 UTC 04a17a3b1170d5887dce23a71dd5891595281e07
1 file changed +1 -1
tests/a06-signed-license-integration.test.mjs
+1 -1
@@ -70,7 +70,7 @@ test('A06: a caller-supplied forged public key is not automatically trusted by t
70 test('A06: invalid wall-clock inputs cannot validate a signed offline lease', async () => {
71 const { pub, payload, sign } = await newSignedExample();
72 const token = await sign(payload);
73 - for (const invalidNow of [NaN, Infinity, -Infinity, -1, 1.5, Number.MAX_VALUE, null, undefined, '2026-10-15']) {
73 + for (const invalidNow of [NaN, Infinity, -Infinity, -1, 1.5, Number.MAX_VALUE, null, '2026-10-15']) {
74 assert.equal(await validateOfflineActivation(token, pub, payload.installationId, invalidNow),
75 false, String(invalidNow));
76 }