meta { name: List Price Reports type: http seq: 1 } get { url: {{baseUrl}}/products/{{productId}}/price_reports } headers { Authorization: Bearer {{authToken}} } assert { res.status: equals 200 } tests { test("List price reports returns an array", function() { const data = res.getBody(); expect(data).to.be.an("array"); }); test("Each price report has correct shape", function() { const data = res.getBody(); data.forEach(function(report) { expect(report).to.have.property("id"); expect(report).to.have.property("price"); expect(report).to.have.property("store_id"); expect(report).to.have.property("product_id"); expect(report).to.have.property("user_id"); }); }); }