refactor: Improved and simplified the implementation of history details for both Sonarr and Lidarr
This commit is contained in:
@@ -173,7 +173,7 @@ mod tests {
|
||||
panic!("Expected LidarrHistoryWrapper")
|
||||
};
|
||||
mock.assert_async().await;
|
||||
assert!(app.lock().await.data.lidarr_data.history.is_empty());
|
||||
assert_is_empty!(app.lock().await.data.lidarr_data.history);
|
||||
assert!(app.lock().await.data.lidarr_data.history.sort_asc);
|
||||
assert_eq!(history, response);
|
||||
}
|
||||
@@ -194,6 +194,6 @@ mod tests {
|
||||
.await;
|
||||
|
||||
mock.assert_async().await;
|
||||
assert!(result.is_ok());
|
||||
assert_ok!(result);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user