What is the general syntax of a Postman test?
pm.test("Returns a book object", () => {
code here
})How do you assert a response to have a specific property?
pm.expect(data).to.have.property("title");How to do you parse the response of a request into a usable JSON object for writing Postman tests?
const getData = () => pm.response.json().data;
How do you assert values in Postman tests?
pm.expect(data.title).to.equal("Sapiens");