.
This commit is contained in:
parent
e26e25b566
commit
be2843ca80
65 changed files with 187 additions and 39 deletions
23
packages/arrtrix/pkg/arr/catalog_test.go
Normal file
23
packages/arrtrix/pkg/arr/catalog_test.go
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
package arr
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestParseContentType(t *testing.T) {
|
||||
contentType, err := ParseContentType("Movies")
|
||||
if err != nil {
|
||||
t.Fatalf("ParseContentType returned error: %v", err)
|
||||
}
|
||||
if contentType != ContentTypeMovies {
|
||||
t.Fatalf("expected movies content type, got %q", contentType)
|
||||
}
|
||||
}
|
||||
|
||||
func TestParseEventType(t *testing.T) {
|
||||
eventType, err := ParseEventType(ContentTypeSeries, "download")
|
||||
if err != nil {
|
||||
t.Fatalf("ParseEventType returned error: %v", err)
|
||||
}
|
||||
if eventType != "Download" {
|
||||
t.Fatalf("expected Download event type, got %q", eventType)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue