photoprism/pkg/media/preview_test.go

18 lines
301 B
Go
Raw Normal View History

package media
import (
"testing"
"github.com/jinzhu/gorm"
"github.com/stretchr/testify/assert"
)
func TestPreviewFileTypes(t *testing.T) {
assert.Equal(t, []string{"jpg", "png"}, PreviewFileTypes)
}
func TestIsPreview(t *testing.T) {
assert.Equal(t, gorm.Expr("'jpg','png'"), PreviewExpr)
}