/
Alex_Ural
/
opencode
Обзор
Документация
Войти
/
Alex_Ural
/
opencode
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
packages/app/src/desktop-menu.test.ts
13 строк
512 B
opencode-agent[bot]
fix(app): register export logs globally (#34352)
30 июн 2026, 09:31
Не верифицирован
30 июн 2026, 09:31
e687eb9
Код
Авторство
О чём код?
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) }) })