fix: keybind testcases

This commit is contained in:
CJ van den Berg 2025-01-22 22:30:24 +01:00
parent bb887b5789
commit 8a89c888eb
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
2 changed files with 2 additions and 1 deletions

View file

@ -386,6 +386,7 @@ pub fn build_exe(
tests.root_module.addImport("input", input_mod); tests.root_module.addImport("input", input_mod);
tests.root_module.addImport("thespian", thespian_mod); tests.root_module.addImport("thespian", thespian_mod);
tests.root_module.addImport("log", log_mod); tests.root_module.addImport("log", log_mod);
tests.root_module.addImport("Buffer", Buffer_mod);
// b.installArtifact(tests); // b.installArtifact(tests);
break :blk b.addRunArtifact(tests); break :blk b.addRunArtifact(tests);
}; };

View file

@ -770,7 +770,7 @@ test "match" {
} }
test "json" { test "json" {
var bindings: BindingSet = .{ .name = "test" }; var bindings: BindingSet = .{ .name = "test", .selection_style = .normal };
_ = try bindings.process_key_event(input.KeyEvent.from_key('j')); _ = try bindings.process_key_event(input.KeyEvent.from_key('j'));
_ = try bindings.process_key_event(input.KeyEvent.from_key('k')); _ = try bindings.process_key_event(input.KeyEvent.from_key('k'));
_ = try bindings.process_key_event(input.KeyEvent.from_key('g')); _ = try bindings.process_key_event(input.KeyEvent.from_key('g'));