Skip to content

Commit a9a5d03

Browse files
committed
Fixes
1 parent 00c64bd commit a9a5d03

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Build
1919
run: cargo build
2020
- name: Run tests
21-
run: cargo test --all-features
21+
run: cargo test
2222
- name: Run lint
2323
run: cargo clippy
2424
- name: Run fmt

src/backend/crossterm.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,13 +123,14 @@ impl EventHandler for Input {
123123

124124
#[cfg(test)]
125125
mod tests {
126-
use crossterm::event::{KeyEventKind, KeyEventState};
127-
128126
use super::*;
127+
use ratatui::crossterm::event::{
128+
Event, KeyCode, KeyEvent, KeyEventKind, KeyEventState, KeyModifiers,
129+
};
129130

130131
#[test]
131132
fn handle_tab() {
132-
let evt = CrosstermEvent::Key(KeyEvent {
133+
let evt = Event::Key(KeyEvent {
133134
code: KeyCode::Tab,
134135
modifiers: KeyModifiers::NONE,
135136
kind: KeyEventKind::Press,
@@ -143,7 +144,7 @@ mod tests {
143144

144145
#[test]
145146
fn handle_repeat() {
146-
let evt = CrosstermEvent::Key(KeyEvent {
147+
let evt = Event::Key(KeyEvent {
147148
code: KeyCode::Char('a'),
148149
modifiers: KeyModifiers::NONE,
149150
kind: KeyEventKind::Repeat,

0 commit comments

Comments
 (0)