Skip to content

Commit

Permalink
test: ensure that updating child entities does not change their order
Browse files Browse the repository at this point in the history
  • Loading branch information
Yogu committed Feb 7, 2024
1 parent 01bcfbd commit 859343e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,10 @@ mutation updateMultiple {
updateItems: [
{ id: "id_test_0003", itemNumber: "updated03" }
{ id: "id_test_0005", itemNumber: "updated05" }
{ id: "id_test_0007", itemNumber: "updated07" }
{ id: "id_test_0008", itemNumber: "updated08" }
{ id: "id_test_0009", itemNumber: "updated09" }
# out of order to make sure the original order is preserved
{ id: "id_test_0007", itemNumber: "updated07" }
# make sure this one does not end up in the list
# (the initial implementation of the dict-based update had a bug that it was)
{ id: "nonexistant", itemNumber: "updated10" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,10 @@ mutation updateMultiple {
updateItems: [
{ id: "id_test_0003", itemNumber: "updated03" }
{ id: "id_test_0005", itemNumber: "updated05" }
{ id: "id_test_0007", itemNumber: "updated07" }
{ id: "id_test_0008", itemNumber: "updated08" }
{ id: "id_test_0009", itemNumber: "updated09" }
# out of order to make sure the original order is preserved
{ id: "id_test_0007", itemNumber: "updated07" }
# make sure this one does not end up in the list
# (the initial implementation of the dict-based update had a bug that it was)
{ id: "nonexistant", itemNumber: "updated10" }
Expand Down

0 comments on commit 859343e

Please sign in to comment.