People: Add SubjectNames() to file entity #22

This commit is contained in:
Michael Mayer
2021-09-02 11:12:42 +02:00
parent a5f8e6149f
commit 1be409d654
14 changed files with 202 additions and 50 deletions

View 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)
}
}