Files
Recordly/electron/hudOverlayWindowOptions.test.ts
T
webadderall eaf87be95b Recordly 2.0 local review stack 2/6
Dependency-ordered review preparation. Not pushed or remotely reviewed.
2026-11-06 05:24:21 +11:00

27 lines
739 B
TypeScript

import { describe, expect, it } from "vitest";
import { getHudOverlayTaskbarOptions } from "./hudOverlayWindowOptions";
describe("getHudOverlayTaskbarOptions", () => {
it("keeps a focusable HUD in the Windows taskbar", () => {
expect(getHudOverlayTaskbarOptions("win32")).toEqual({
skipTaskbar: false,
focusable: true,
});
});
it("uses a non-activating macOS panel so HUD clicks do not raise Home", () => {
expect(getHudOverlayTaskbarOptions("darwin")).toEqual({
skipTaskbar: true,
focusable: true,
type: "panel",
});
});
it("keeps the Linux HUD non-focusable and out of the taskbar", () => {
expect(getHudOverlayTaskbarOptions("linux")).toEqual({
skipTaskbar: true,
focusable: false,
});
});
});