Backend: Add unit tests for internal/entity

This commit is contained in:
Theresa Gresch 2020-07-10 15:15:56 +02:00
parent d6c910c16b
commit dad0ba9d27

View file

@ -65,7 +65,7 @@ func TestPhotoLabel_Save(t *testing.T) {
}
})
t.Run("photo not nil and label not nil", func(t *testing.T) {
label := &Label{LabelName: "ToBeRestored"}
label := &Label{LabelName: "LabelSaveUnique", LabelSlug: "unique-slug"}
photo := &Photo{}
photoLabel := PhotoLabel{Photo: photo, Label: label}