style: remove redundant code narration
This commit is contained in:
1 parent
495f31778b
commit
783fb76f06
115 files changed
+19
-746
No files matched your search
@@ -1428,7 +1428,6 @@ fn confirming_popup_toggles_skip_dependencies_with_s() {
|
||||
assert!(handle_key(&KeyEvent::from(KeyCode::Char('s')), &mut state));
|
||||
assert!(!state.version_popup.as_ref().unwrap().skip_dependencies);
|
||||
|
||||
// Toggling is blocked while loading or installing.
|
||||
state.version_popup.as_mut().unwrap().loading = true;
|
||||
assert!(handle_key(&KeyEvent::from(KeyCode::Char('s')), &mut state));
|
||||
assert!(!state.version_popup.as_ref().unwrap().skip_dependencies);
|
||||
@@ -1505,7 +1504,6 @@ fn installed_mode_defaults_to_any_game_version() {
|
||||
assert_eq!(state.filters.game_version, GameVersionFilter::Any);
|
||||
assert_eq!(state.active_filter_count(), 0);
|
||||
|
||||
// The same Any filter counts as active in discovery mode.
|
||||
state.set_local_mode(false);
|
||||
state.filters.game_version = GameVersionFilter::Any;
|
||||
assert_eq!(state.active_filter_count(), 1);
|
||||
|
||||
@@ -13,7 +13,6 @@ fn confirm_keeps_query_but_deactivates() {
|
||||
s.confirm();
|
||||
assert!(!s.active);
|
||||
assert_eq!(s.query, "ab");
|
||||
// filter should still match
|
||||
assert!(s.matches("abc"));
|
||||
assert!(!s.matches("xyz"));
|
||||
s.activate();
|
||||
@@ -29,7 +28,6 @@ fn deactivate_clears_query() {
|
||||
s.deactivate();
|
||||
assert!(!s.active);
|
||||
assert!(s.query.is_empty());
|
||||
// with empty query, everything matches
|
||||
assert!(s.matches("anything"));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user