mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
People: Add SubjectNames() to file entity #22
This commit is contained in:
13
internal/entity/file_json_test.go
Normal file
13
internal/entity/file_json_test.go
Normal file
@@ -0,0 +1,13 @@
|
||||
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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user