Skip to content

Commit 068631f

Browse files
committed
fix: correct test assertion for history search escape behavior
1 parent 1bc396a commit 068631f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ghostscope-ui/tests/additional_ui_coverage_test.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ mod history_search_tests {
101101
let actions = InputHandler::handle_key_event(&mut state, esc_key);
102102

103103
assert!(!state.is_in_history_search());
104-
assert!(actions
104+
// Should NOT add empty response - would overwrite previous command's response
105+
assert!(!actions
105106
.iter()
106107
.any(|a| matches!(a, Action::AddResponse { .. })));
107108
}

0 commit comments

Comments
 (0)