fix(sonarr): Pass the episode ID alongside all TriggerAutomaticEpisodeSearch events when publishing to the networking channel

This commit is contained in:
2024-12-18 01:29:30 -07:00
parent c16ecfb188
commit b12c635c27
8 changed files with 96 additions and 70 deletions
@@ -840,6 +840,20 @@ mod tests {
assert_eq!(episode_id, 1);
}
#[test]
#[should_panic(expected = "Season details have not been loaded")]
fn test_extract_episode_id_panic_when_season_details_modal_is_none() {
let mut app = App::default();
SeasonDetailsHandler::with(
DEFAULT_KEYBINDINGS.esc.key,
&mut app,
ActiveSonarrBlock::SeasonDetails,
None,
)
.extract_episode_id();
}
#[test]
fn test_season_details_handler_is_not_ready_when_loading() {
let mut app = App::default();