mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
Edit: Change image orientation through the user interface #464
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
25
internal/form/file_test.go
Normal file
25
internal/form/file_test.go
Normal file
@@ -0,0 +1,25 @@
|
||||
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)
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user