Bulk update (#2311)
* refactor: remove EmbedPath type from qsFiltersRoot * Rename reset items function for reusability
This commit is contained in:
@@ -93,16 +93,13 @@ spec =
|
||||
{ "id": 8, "name": "HaikuOS" } ]|]
|
||||
{ matchStatus = 201 }
|
||||
|
||||
it "doesn't affect updates" $
|
||||
it "doesn't affect updates(2 rows would be modified if it did)" $
|
||||
request methodPatch "/employees?select=first_name,last_name,occupation"
|
||||
[("Prefer", "return=representation")]
|
||||
[json| [{"occupation": "Barista"}] |]
|
||||
`shouldRespondWith`
|
||||
[json|[
|
||||
{ "first_name": "Frances M.", "last_name": "Roe", "occupation": "Barista" },
|
||||
{ "first_name": "Daniel B.", "last_name": "Lyon", "occupation": "Barista" },
|
||||
{ "first_name": "Edwin S.", "last_name": "Smith", "occupation": "Barista" } ]|]
|
||||
{ matchStatus = 200 }
|
||||
[json|[]|]
|
||||
{ matchStatus = 404 }
|
||||
|
||||
it "doesn't affect deletions" $
|
||||
request methodDelete "/employees?select=first_name,last_name"
|
||||
|
||||
Reference in New Issue
Block a user