photoprism/internal/meta/video_test.go
Michael Mayer 08070978cf Videos: Don't skip transcoding QuickTime files, only MP4 AVC #3525
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-07-18 21:23:56 +02:00

25 lines
359 B
Go

package meta
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestData_CodecAvc(t *testing.T) {
t.Run("true", func(t *testing.T) {
data := Data{
Codec: "avc1",
}
assert.Equal(t, true, data.CodecAvc())
})
t.Run("false", func(t *testing.T) {
data := Data{
Codec: "heic",
}
assert.Equal(t, false, data.CodecAvc())
})
}