API: Update albums_test.go
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
parent
902f9a40f6
commit
cef88e5564
1 changed files with 1 additions and 1 deletions
|
@ -263,7 +263,7 @@ func TestCloneAlbums(t *testing.T) {
|
|||
CloneAlbums(router)
|
||||
r := PerformRequestWithBody(app, "POST", "/api/v1/albums/"+uid+"/clone", `{albums: ["`+uid+`"]}`)
|
||||
val := gjson.Get(r.Body.String(), "error")
|
||||
assert.Equal(t, "Invalid request", val.String())
|
||||
assert.Equal(t, "Unable to do that", val.String())
|
||||
assert.Equal(t, http.StatusBadRequest, r.Code)
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue