test: fix tests
authorJérôme Benoit <jerome.benoit@sap.com>
Sun, 30 Jul 2023 23:16:57 +0000 (01:16 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Sun, 30 Jul 2023 23:16:57 +0000 (01:16 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
test/utils/Utils.test.ts

index 8804e577bb73a81c89fd80f2fa9640a547d6c015..05bf2bbb4c089eb99a6803616f4fb068c49d1df4 100644 (file)
@@ -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';