photoprism/internal/form/file_test.go
Michael Mayer 9ad86ac017 Edit: Change image orientation through the user interface #464
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-20 16:18:27 +01:00

26 lines
334 B
Go

package form
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestNewFile(t *testing.T) {
t.Run("Orientation", func(t *testing.T) {
var file = struct {
Orientation int
}{
Orientation: 3,
}
frm, err := NewFile(file)
if err != nil {
t.Fatal(err)
}
assert.Equal(t, 3, frm.Orientation)
})
}