| ... | @@ -18,12 +18,10 @@ describe("keybindings contracts", () => { | ... | @@ -18,12 +18,10 @@ describe("keybindings contracts", () => { |
| 18 | | 18 | |
| 19 | it("rejects invalid command values", () => { | 19 | it("rejects invalid command values", () => { |
| 20 | assert.throws(() => | 20 | assert.throws(() => |
| 21 | keybindingRuleSchema.parse( | 21 | keybindingRuleSchema.parse({ |
| 22 | { | 22 | key: "mod+j", |
| 23 | key: "mod+j", | 23 | command: "invalid.command", |
| 24 | command: "invalid.command" as unknown as "terminal.toggle", | 24 | }), |
| 25 | }, | | |
| 26 | ), | | |
| 27 | ); | 25 | ); |
| 28 | }); | 26 | }); |
| 29 | | 27 | |