mirror of
https://github.com/webadderallorg/Recordly.git
synced 2026-11-09 15:33:31 +00:00
27 lines
739 B
TypeScript
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,
|
|
});
|
|
});
|
|
});
|