Did a lot of things in this one: Cleaned up a bit of leftover unused code from yesterday; deprecated the use of drain() on HorizontallyScrollableText; Refactored the uses of search and filter to be wrapped in Options; Fixed a race condition when closing the Add Movie modals in rapid succession; upgraded to ratatui 0.22.0; Fixed a bug in attempting to close an empty root folder; fixed a bug in attempting to close an empty filter; fixed a bug in attempting to close an empty search; fixed a bug in attempting to close an empty filter without resetting the view; fixed a bug in attempting to delete a movie after dynamically added one and updating the main library table
This commit is contained in:
@@ -440,16 +440,6 @@ mod tests {
|
||||
assert_eq!(*horizontally_scrollable_test.offset.borrow(), 0);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_horizontally_scrollable_text_drain() {
|
||||
let test_text = "Test string";
|
||||
let mut horizontally_scrollable_text = HorizontallyScrollableText::from(test_text);
|
||||
|
||||
assert_str_eq!(horizontally_scrollable_text.drain(), test_text);
|
||||
assert!(horizontally_scrollable_text.text.is_empty());
|
||||
assert_eq!(*horizontally_scrollable_text.offset.borrow(), 0);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_horizontally_scrollable_text_pop() {
|
||||
let test_text = "Test string";
|
||||
|
||||
Reference in New Issue
Block a user