0.2.54
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user