mirror of
https://github.com/photoprism/photoprism.git
synced 2025-10-05 16:57:17 +08:00
14 lines
265 B
Go
14 lines
265 B
Go
package entity
|
|
|
|
import "testing"
|
|
|
|
func TestFile_MarshalJSON(t *testing.T) {
|
|
if m := FileFixtures.Pointer("Video.mp4"); m == nil {
|
|
t.Fatal("must not be nil")
|
|
} else if j, err := m.MarshalJSON(); err != nil {
|
|
t.Fatal(err)
|
|
} else {
|
|
t.Logf("json: %s", j)
|
|
}
|
|
}
|