/
Alex_Ural
/
opencode
Обзор
Документация
Войти
/
Alex_Ural
/
opencode
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
packages/app/src/components/command-tooltip-keybind.test.ts
22 строки
687 B
Aarav Sareen
feat(app): ui improvements (#32438)
25 июн 2026, 08:26
Не верифицирован
25 июн 2026, 08:26
1bcb9d7
Код
Авторство
О чём код?
import { describe, expect, test } from "bun:test" import { newTabTooltipKeybind, reviewTooltipKeybind } from "./command-tooltip-keybind" describe("command tooltip keybinds", () => { test("keeps localized review shortcut modifiers", () => { const command = { keybind: () => "Ctrl+Maj+R", keybindParts: () => ["Ctrl", "Maj", "R"], } expect(reviewTooltipKeybind(command, (key) => key)).toEqual(["Ctrl", "Maj", "R"]) }) test("uses the configured new-tab shortcut", () => { const command = { keybind: () => "Alt+N", keybindParts: () => ["Alt", "N"], } expect(newTabTooltipKeybind(command, (key) => key)).toEqual(["Alt", "N"]) }) })