feat: Pagination support for jumping 20 items at a time in all table views [#45]
This commit is contained in:
@@ -11,6 +11,8 @@ mod tests {
|
||||
#[case(Key::Down, "↓")]
|
||||
#[case(Key::Left, "←")]
|
||||
#[case(Key::Right, "→")]
|
||||
#[case(Key::PgDown, "C-d")]
|
||||
#[case(Key::PgUp, "C-u")]
|
||||
#[case(Key::Enter, "enter")]
|
||||
#[case(Key::Esc, "esc")]
|
||||
#[case(Key::Backspace, "backspace")]
|
||||
@@ -45,6 +47,16 @@ mod tests {
|
||||
assert_eq!(Key::from(KeyEvent::from(KeyCode::Right)), Key::Right);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_key_from_page_down() {
|
||||
assert_eq!(Key::from(KeyEvent::from(KeyCode::PageDown)), Key::PgDown);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_key_from_page_up() {
|
||||
assert_eq!(Key::from(KeyEvent::from(KeyCode::PageUp)), Key::PgUp);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_key_from_backspace() {
|
||||
assert_eq!(
|
||||
|
||||
Reference in New Issue
Block a user