wip: correct constructor use in test that creates a State for testing

This commit is contained in:
Phil Weir 2024-10-20 18:59:44 +02:00
parent 55f5da5096
commit 3eeea4622b

View File

@ -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() {
@ -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,