photoprism/internal/video/video_test.go

14 lines
238 B
Go
Raw Normal View History

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