From 5d1fd6839c74338dc2be3086e8d625f1cb394c7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Conde?= <16060539+joao-conde@users.noreply.github.com> Date: Mon, 27 Nov 2023 17:15:59 +0000 Subject: [PATCH] test: fix test by appending timezone --- test/time.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/time.js b/test/time.js index d31c866..df6f4c8 100644 --- a/test/time.js +++ b/test/time.js @@ -28,7 +28,7 @@ describe("Time", function() { }); it("should format simple date strings and reverse the output", () => { - const result = ripeCommons.dateStringUTC(new Date("10/12/2020") / 1000, "-", { + const result = ripeCommons.dateStringUTC(new Date("10/12/2020Z") / 1000, "-", { reverseDate: true }); assert.deepStrictEqual(result, "2020-10-12");