This commit is contained in:
ponzischeme89
2026-08-12 08:25:15 +12:00
parent e30962245e
commit 4b31946635
28 changed files with 439 additions and 130 deletions
+12
View File
@@ -38,3 +38,15 @@ func TestSonarrCancellationRequiresAnActiveHistory(t *testing.T) {
}
}
}
func TestSonarrLifecycleClassifiesNewSeriesAfterTheBaseline(t *testing.T) {
if got := sonarrLifecycleNotificationKind("", "continuing"); got != "show-added" {
t.Fatalf("new series notification = %q, want show-added", got)
}
if got := sonarrLifecycleNotificationKind("continuing", "ended"); got != "show-cancelled" {
t.Fatalf("cancelled series notification = %q, want show-cancelled", got)
}
if got := sonarrLifecycleNotificationKind("continuing", "continuing"); got != "" {
t.Fatalf("unchanged series notification = %q, want none", got)
}
}