test(server/utils): add tests for isMac/isWindows/isElectron

This commit is contained in:
Panagiotis Papadopoulos 2025-01-29 21:45:14 +01:00
parent 81db681732
commit de5ffb591d

View File

@ -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", () => {