photoprism/internal/video/formats_test.go
Michael Mayer 68ba289d6c CLI: Add "photoprism show config/formats" subcommands
Replaces "photoprism config", which could only display
current configuration values. Codecs and file formats
have been refactored along the way.

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2022-04-12 13:28:28 +02:00

18 lines
308 B
Go

package video
import "testing"
func TestFormats(t *testing.T) {
if val := Formats[""]; val != AVC {
t.Fatal("default type should be avc")
}
if val := Formats["mp4"]; val != MP4 {
t.Fatal("mp4 type should be mp4")
}
if val := Formats["avc"]; val != AVC {
t.Fatal("mp4 type should be avc")
}
}