From de5ffb591d38dd8967650a7152f07f57d53918b0 Mon Sep 17 00:00:00 2001 From: Panagiotis Papadopoulos Date: Wed, 29 Jan 2025 21:45:14 +0100 Subject: [PATCH] test(server/utils): add tests for isMac/isWindows/isElectron --- src/services/utils.spec.ts | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/src/services/utils.spec.ts b/src/services/utils.spec.ts index 06eccab7c..ce1e83392 100644 --- a/src/services/utils.spec.ts +++ b/src/services/utils.spec.ts @@ -36,8 +36,6 @@ describe.todo("#fromBase64", () => {}); describe.todo("#hmac", () => {}); -describe.todo("#isElectron", () => {}); - describe.todo("#hash", () => {}); describe("#isEmptyOrWhitespace", () => { @@ -228,10 +226,23 @@ describe("#envToBoolean", () => { describe.todo("#getResourceDir", () => {}); -describe.todo("#isMac", () => {}); +describe("#isElectron", () => { + it("should export a boolean", () => { + expect(utils.isElectron).toBeTypeOf("boolean"); + }); +}); -describe.todo("#isWindows", () => {}); +describe("#isMac", () => { + it("should export a boolean", () => { + expect(utils.isMac).toBeTypeOf("boolean"); + }); +}); +describe("#isWindows", () => { + it("should export a boolean", () => { + expect(utils.isWindows).toBeTypeOf("boolean"); + }); +}); describe("#formatDownloadTitle", () => {