mirror of
https://github.com/alexpasmantier/television.git
synced 2025-06-06 19:45:23 +00:00
test: a little fix
This commit is contained in:
parent
0abeb904de
commit
85c7345492
24
tests/app.rs
24
tests/app.rs
@ -167,25 +167,13 @@ async fn test_app_exact_search_multiselect() {
|
|||||||
.expect("app did not finish within the default timeout")
|
.expect("app did not finish within the default timeout")
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
assert!(output.selected_entries.is_some());
|
let selected_entries = output.selected_entries.clone();
|
||||||
assert!(&output
|
assert!(selected_entries.is_some());
|
||||||
.selected_entries
|
// should contain a single entry with the prompt
|
||||||
.clone()
|
assert!(!selected_entries.as_ref().unwrap().is_empty());
|
||||||
.unwrap()
|
|
||||||
.drain()
|
|
||||||
.next()
|
|
||||||
.unwrap()
|
|
||||||
.value
|
|
||||||
.is_none());
|
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
output
|
selected_entries.unwrap().drain().next().unwrap().name,
|
||||||
.selected_entries
|
"fie"
|
||||||
.as_ref()
|
|
||||||
.unwrap()
|
|
||||||
.iter()
|
|
||||||
.map(|e| &e.name)
|
|
||||||
.collect::<HashSet<_>>(),
|
|
||||||
HashSet::from([&"fie".to_string()])
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user