From 17d1a415e4cbcaf47abc80b46e760e2ae5469935 Mon Sep 17 00:00:00 2001 From: Vishnu Narayanan Date: Fri, 23 Feb 2024 14:04:33 +0530 Subject: [PATCH] chore: fix spec --- test/helpers.test.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/test/helpers.test.ts b/test/helpers.test.ts index 6e08130..379adba 100644 --- a/test/helpers.test.ts +++ b/test/helpers.test.ts @@ -48,9 +48,4 @@ describe('#convertSecondsToTimeUnit', () => { convertSecondsToTimeUnit(0, { minute: 'm', hour: 'h', day: 'd' }) ).toEqual({ time: 1, unit: 's' }); }); - it("it should return { time: '', unit: '' } if seconds passed is null", () => { - expect( - convertSecondsToTimeUnit(null, { minute: 'm', hour: 'h', day: 'd' }) - ).toEqual({ time: 1, unit: 's' }); - }); });