From 73c38b582a175c5e6efef574367ee08ed855aafa Mon Sep 17 00:00:00 2001 From: Dax Raad Date: Thu, 9 Oct 2025 01:58:39 -0400 Subject: [PATCH] test: update keybind tests to match new leader key format with space separator --- packages/opencode/test/keybind.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/opencode/test/keybind.test.ts b/packages/opencode/test/keybind.test.ts index 56b3d0cdf..ee8b626b7 100644 --- a/packages/opencode/test/keybind.test.ts +++ b/packages/opencode/test/keybind.test.ts @@ -14,7 +14,7 @@ describe("Keybind.toString", () => { test("should convert leader key to string", () => { const info: Keybind.Info = { ctrl: false, option: false, shift: false, leader: true, name: "f" } - expect(Keybind.toString(info)).toBe(",f") + expect(Keybind.toString(info)).toBe(" f") }) test("should convert multiple modifiers to string", () => { @@ -24,7 +24,7 @@ describe("Keybind.toString", () => { test("should convert all modifiers to string", () => { const info: Keybind.Info = { ctrl: true, option: true, shift: true, leader: true, name: "h" } - expect(Keybind.toString(info)).toBe(",ctrl+alt+shift+h") + expect(Keybind.toString(info)).toBe(" ctrl+alt+shift+h") }) test("should convert shift modifier to string", () => { @@ -49,7 +49,7 @@ describe("Keybind.toString", () => { test("should handle only modifiers", () => { const info: Keybind.Info = { ctrl: true, option: true, shift: true, leader: true, name: "" } - expect(Keybind.toString(info)).toBe(",ctrl+alt+shift") + expect(Keybind.toString(info)).toBe(" ctrl+alt+shift") }) test("should handle only leader with no other parts", () => {