summaryrefslogtreecommitdiffstats
path: root/src/interactive/app/tests/journeys_with_writes.rs
diff options
context:
space:
mode:
authorSebastian Thiel <sebastian.thiel@icloud.com>2022-09-12 09:45:50 +0800
committerSebastian Thiel <sebastian.thiel@icloud.com>2022-09-12 09:46:26 +0800
commit28f5ac90cc1ba7d668ae8a83eb5cd899294a8301 (patch)
treeed192e3b13c084afc1ab9a9ef08ddb369577714c /src/interactive/app/tests/journeys_with_writes.rs
parente35baeaf25176e94ccc352b623f5cfd4b6b95b7b (diff)
feat: Automatically resize if the terminal changes in size. (#28)
Diffstat (limited to 'src/interactive/app/tests/journeys_with_writes.rs')
-rw-r--r--src/interactive/app/tests/journeys_with_writes.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/interactive/app/tests/journeys_with_writes.rs b/src/interactive/app/tests/journeys_with_writes.rs
index 6e411f3..4e990ee 100644
--- a/src/interactive/app/tests/journeys_with_writes.rs
+++ b/src/interactive/app/tests/journeys_with_writes.rs
@@ -2,6 +2,8 @@ use crate::interactive::app::tests::utils::{
initialized_app_and_terminal_from_paths, into_keys, WritableFixture,
};
use anyhow::Result;
+use crosstermion::input::Event;
+use crosstermion::input::Key;
use pretty_assertions::assert_eq;
#[test]
@@ -24,11 +26,7 @@ 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![
- crosstermion::input::Key::Char('\t'),
- crosstermion::input::Key::Ctrl('r'),
- ]
- .into_iter(),
+ vec![Event::Key(Key::Char('\t')), Event::Key(Key::Ctrl('r'))].into_iter(),
)?;
assert!(
app.window.mark_pane.is_none(),