Co-authored-by: Luke Parker <10430890+Hona@users.noreply.github.com> Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
13 lines
512 B
TypeScript
13 lines
512 B
TypeScript
import { describe, expect, test } from "bun:test"
|
|
import { DESKTOP_MENU } from "./desktop-menu"
|
|
|
|
describe("desktop menu", () => {
|
|
test("exports logs through the desktop command registry", () => {
|
|
const items = DESKTOP_MENU.flatMap((menu) => menu.items ?? []).filter(
|
|
(item) => item.type === "item" && item.label === "Export Logs...",
|
|
)
|
|
|
|
expect(items).toHaveLength(2)
|
|
expect(items.every((item) => item.type === "item" && item.command === "logs.export" && !item.action)).toBe(true)
|
|
})
|
|
})
|