mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
test: update keybind tests to match new leader key format with space separator
This commit is contained in:
parent
e1835cb221
commit
73c38b582a
1 changed files with 3 additions and 3 deletions
|
|
@ -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("<leader>,f")
|
||||
expect(Keybind.toString(info)).toBe("<leader> 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("<leader>,ctrl+alt+shift+h")
|
||||
expect(Keybind.toString(info)).toBe("<leader> 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("<leader>,ctrl+alt+shift")
|
||||
expect(Keybind.toString(info)).toBe("<leader> ctrl+alt+shift")
|
||||
})
|
||||
|
||||
test("should handle only leader with no other parts", () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue