Hey @seyous,
It looks like that’s an array of 3 objects, I’m guessing that’s the 3 fixtures you want to test for?
Something simple like this could do that:
pm.test("Should be 3 fixtures", () => {
pm.expect(pm.response.json().length).to.eql(3)
})
More information about working with JSON responses can be found here:
1 Like