diff options
author | Piotr Wach <pwach@bloomberg.net> | 2024-01-08 23:17:53 +0000 |
---|---|---|
committer | Piotr Wach <pwach@bloomberg.net> | 2024-01-08 23:17:53 +0000 |
commit | d903ea67a4f77c9483aed7bda1ef6694ee4465da (patch) | |
tree | 3254eadc317a6899bbce054d764b4bf2f757361d /src/interactive/app/tests/journeys_with_writes.rs | |
parent | 6c63bf5a33ebb6b98516ca9a96796facfdab2277 (diff) |
Fixed tests
Diffstat (limited to 'src/interactive/app/tests/journeys_with_writes.rs')
-rw-r--r-- | src/interactive/app/tests/journeys_with_writes.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/interactive/app/tests/journeys_with_writes.rs b/src/interactive/app/tests/journeys_with_writes.rs index 80e65d7..09ca1be 100644 --- a/src/interactive/app/tests/journeys_with_writes.rs +++ b/src/interactive/app/tests/journeys_with_writes.rs @@ -9,6 +9,8 @@ use pretty_assertions::assert_eq; #[test] #[cfg(not(target_os = "windows"))] // it stopped working here, don't know if it's truly broken or if it's the test. Let's wait for windows users to report. fn basic_user_journey_with_deletion() -> Result<()> { + use crate::interactive::app::tests::utils::{into_keys, into_events}; + let fixture = WritableFixture::from("sample-02"); let (mut terminal, mut app) = initialized_app_and_terminal_from_paths(&[fixture.root.clone()])?; @@ -26,11 +28,11 @@ fn basic_user_journey_with_deletion() -> Result<()> { // When selecting the marker window and pressing the combination to delete entries app.process_events( &mut terminal, - vec![ + into_events(vec![ Event::Key(KeyCode::Tab.into()), Event::Key(KeyEvent::new(KeyCode::Char('r'), KeyModifiers::CONTROL)), ] - .into_iter(), + .into_iter()), )?; assert!( app.window.mark_pane.is_none(), |