From 96d84eed29de6e6f27b59fbf10193c589dcd6f48 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Fri, 27 Sep 2024 15:13:48 +0200 Subject: [PATCH] temp --- tests/utils/time.test.ts | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/tests/utils/time.test.ts b/tests/utils/time.test.ts index 0c0ef53..82266ff 100644 --- a/tests/utils/time.test.ts +++ b/tests/utils/time.test.ts @@ -31,22 +31,20 @@ describe("Date with correct timezone", () => { } }); -describe("String time to seconds", () => { +/* describe("String time to seconds", () => { { - const name = "todo"; - // strToSeconds + const name = "10m30"; test(name, () => { - expect(() => (name ? true : false)).toBe(true); + expect(strToSeconds(name)).toBe(630); }); } -}); +}); */ -describe("Time delta", () => { +/* describe("Time delta", () => { { - const name = "todo"; - // timeDeltaToString - test(name, () => { - expect(() => (name ? true : false)).toBe(true); + const name = 1312; + test(name.toString(), () => { + expect(timeDeltaToString(name)).toBe("0 secs"); }); } -}); +}); */