photoprism/internal/video/video_test.go
2020-12-12 17:20:31 +01:00

18 lines
312 B
Go

package video
import "testing"
func TestTypes(t *testing.T) {
if val := Types[""]; val != TypeAvc {
t.Fatal("default type should be avc")
}
if val := Types["mp4"]; val != TypeMp4 {
t.Fatal("mp4 type should be mp4")
}
if val := Types["avc"]; val != TypeAvc {
t.Fatal("mp4 type should be avc")
}
}