test(command): update command module tests

This commit is contained in:
Orhun Parmaksız 2022-01-28 20:42:01 +03:00
parent 5bc968ee28
commit fec659df7b
No known key found for this signature in database
GPG key ID: F83424824B3E4B90

View file

@ -132,6 +132,14 @@ mod tests {
Command::Scroll(ScrollArea::Documentation, Direction::Down, 4),
"scroll docs down 4",
),
(
Command::Scroll(ScrollArea::Section, Direction::Top, 1),
"scroll section top 1",
),
(
Command::Scroll(ScrollArea::List, Direction::Bottom, 1),
"scroll list bottom 1",
),
] {
assert_eq!(command, Command::from_str(value).unwrap());
}