Added unit tests for the add_movie_handler and added an additional test to radarr handles to ensure proper delegation. Also added a few macros for testing scrolling and home/end in all handlers to make life easier for those tests.

This commit is contained in:
2023-08-08 10:50:05 -06:00
parent a7dccf7990
commit 52739f4da0
5 changed files with 876 additions and 312 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ impl App {
pub fn handle_error(&mut self, error: anyhow::Error) {
if self.error.text.is_empty() {
self.error = HorizontallyScrollableText::new(error.to_string());
self.error = error.to_string().into();
}
}