From: Jérôme Benoit Date: Sun, 30 Jul 2023 23:16:57 +0000 (+0200) Subject: test: fix tests X-Git-Tag: v1.2.20~66 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=05cda7cec483c6996c0f2619af3fa20a211bf47d;p=e-mobility-charging-stations-simulator.git test: fix tests Signed-off-by: Jérôme Benoit --- diff --git a/test/utils/Utils.test.ts b/test/utils/Utils.test.ts index 8804e577..05bf2bbb 100644 --- a/test/utils/Utils.test.ts +++ b/test/utils/Utils.test.ts @@ -88,8 +88,6 @@ describe('Utils test suite', () => { expect(() => convertToDate('00:70:61')).toThrowError( new Error("Cannot convert to date: '00:70:61'"), ); - expect(convertToDate('0')).toStrictEqual(new Date('1999-12-31T23:00:00.000Z')); - expect(convertToDate('-1')).toStrictEqual(new Date('2000-12-31T23:00:00.000Z')); expect(convertToDate(0)).toStrictEqual(new Date('1970-01-01T00:00:00.000Z')); expect(convertToDate(-1)).toStrictEqual(new Date('1969-12-31T23:59:59.999Z')); const dateStr = '2020-01-01T00:00:00.000Z';