Files
OmniRoute/tests/unit/cli/autostart.test.ts
diegosouzapw 77a4429bf4 feat(cli): add standalone system tray with PowerShell fallback on Windows
Cross-platform system tray for `omniroute --tray`: Windows uses a
PowerShell NotifyIcon script (zero native binary, AV-safe); macOS/Linux
use systray2 lazy-installed at runtime into ~/.omniroute/runtime/.
Includes per-platform autostart (LaunchAgent / .desktop / registry) and
`omniroute config tray <enable|disable>` CLI command.

DISPLAY added to env-sync allowlist as an OS/X11 variable, not an
OmniRoute config variable.
2026-05-14 22:42:01 -03:00

9 lines
316 B
TypeScript

import { test } from "node:test";
import assert from "node:assert/strict";
import { isAutoStartEnabled } from "../../../bin/cli/tray/autostart.ts";
test("isAutoStartEnabled does not throw and returns boolean", async () => {
const result = await isAutoStartEnabled();
assert.equal(typeof result, "boolean");
});