Skip to content

Commit

Permalink
wip: correct constructor use in test that creates a State for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
philtweir committed Oct 20, 2024
1 parent 55f5da5 commit 3eeea46
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion crates/atuin/src/command/client/search/interactive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1413,7 +1413,7 @@ mod tests {
use crate::command::client::search::engines::{self, SearchState};
use crate::command::client::search::history_list::ListState;

use super::{Compactness, State};
use super::{Compactness, State, InspectingState};

#[test]
fn calc_preview_height_test() {
Expand Down Expand Up @@ -1583,6 +1583,11 @@ mod tests {
prefix: false,
current_cursor: None,
tab_index: 0,
inspecting_state: InspectingState {
current: None,
next: None,
previous: None,
},
search: SearchState {
input: String::new().into(),
filter_mode: FilterMode::Directory,
Expand Down

0 comments on commit 3eeea46

Please sign in to comment.