X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=tests%2Futils%2FUtils.test.ts;h=615f76fa01f057c9bad1a1b60a7a0d16b4df54d4;hb=e0d3c3592f990eadb77780b324ceaa105ba44dfa;hp=82964803b87e0f4913a9929dc8125dc7e04d4420;hpb=d7ceb0f08aac1129438b46fe854678aa7aff27ce;p=e-mobility-charging-stations-simulator.git diff --git a/tests/utils/Utils.test.ts b/tests/utils/Utils.test.ts index 82964803..615f76fa 100644 --- a/tests/utils/Utils.test.ts +++ b/tests/utils/Utils.test.ts @@ -91,6 +91,7 @@ await describe('Utils test suite', async () => { await it('Verify convertToDate()', () => { expect(convertToDate(undefined)).toBe(undefined); + expect(convertToDate(null)).toBe(null); expect(() => convertToDate('')).toThrow(new Error("Cannot convert to date: ''")); expect(() => convertToDate('00:70:61')).toThrow( new Error("Cannot convert to date: '00:70:61'"),