mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-18 05:20:29 +00:00
cli: tests for +explain-config explain functions
This commit is contained in:
@@ -128,3 +128,15 @@ fn explainKeybind(name: []const u8) ?[]const u8 {
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
test "explain" {
|
||||
// Config options
|
||||
try std.testing.expect(explainOption("font-size") != null);
|
||||
try std.testing.expect(explainOption("copy_to_clipboard") == null);
|
||||
try std.testing.expect(explainOption("unknown-option") == null);
|
||||
|
||||
// Keybind actions
|
||||
try std.testing.expect(explainKeybind("copy_to_clipboard") != null);
|
||||
try std.testing.expect(explainKeybind("font-size") == null);
|
||||
try std.testing.expect(explainKeybind("unknown_keybind") == null);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user