fix(content): hide unavailable world actions

This commit is contained in:
objz committed 2026-08-04 20:11:22 +02:00
1 parent 37cccc352b
commit 30a9f60830
2 files changed
+22 -6

No files matched your search

+7
View File
@@ -106,3 +106,10 @@ fn confirmation_metadata_is_human_readable() {
);
assert_eq!(confirmation_values(&[]), "Unknown");
}
#[test]
fn empty_world_picker_only_offers_exit_actions() {
let keybinds = world_picker_keybinds(false);
assert!(!keybinds.iter().any(|(key, _)| *key == "Enter"));
assert!(!keybinds.iter().any(|(key, _)| *key == "j/k"));
}