API: Update albums_test.go

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer 2023-02-09 14:06:01 +01:00
parent 902f9a40f6
commit cef88e5564

View file

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