Backend: Add unit tests for internal/entity
This commit is contained in:
parent
d6c910c16b
commit
dad0ba9d27
1 changed files with 1 additions and 1 deletions
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue