desktop-menu.test.ts 512 B

12345678910111213
  1. import { describe, expect, test } from "bun:test"
  2. import { DESKTOP_MENU } from "./desktop-menu"
  3. describe("desktop menu", () => {
  4. test("exports logs through the desktop command registry", () => {
  5. const items = DESKTOP_MENU.flatMap((menu) => menu.items ?? []).filter(
  6. (item) => item.type === "item" && item.label === "Export Logs...",
  7. )
  8. expect(items).toHaveLength(2)
  9. expect(items.every((item) => item.type === "item" && item.command === "logs.export" && !item.action)).toBe(true)
  10. })
  11. })