As a result of the query v1/item/get we get this response
{ "pending_items": [ { "title": "washing", "status": { "status": "PENDING" } } ], "done_items": [], "pending_item_count": 1, "done_item_count": 0 }
As a result, when testing Postman, we get an error when testing the 'status' field
pm.test("Pending item has the correct status", function() { if (result["pending_items"][0]["status"] !== "PENDING") { throw new Error("status of the pending item is not 'pending'"); } })
This can be easily fixed, but I don't understand if there should be a repetition of the 'status' field or if there is an error somewhere.
As a result of the query v1/item/get we get this response
{ "pending_items": [ { "title": "washing", "status": { "status": "PENDING" } } ], "done_items": [], "pending_item_count": 1, "done_item_count": 0 }As a result, when testing Postman, we get an error when testing the 'status' field
pm.test("Pending item has the correct status", function() { if (result["pending_items"][0]["status"] !== "PENDING") { throw new Error("status of the pending item is not 'pending'"); } })This can be easily fixed, but I don't understand if there should be a repetition of the 'status' field or if there is an error somewhere.