Hi,
i have a GET request which returns:
[
{
"idFacture": "d7b8a9b-64f0-45ae-964d-1a1e13ac878d",
"nom": "Paul",
"courriel": "[email protected]",
"types": [
"ville",
"pays",
"nuage",
"paradis",
"espace",
"mars",
"univers"
]
}
]
I want to add asertion for nom.
i tried this:
pm.test("Your test name", function () {
var jsonData = JSON.parse(responseBody);
pm.expect(jsonData.nom).to.eql("paul");
});
It returns:
AssertionError: expected undefined to deeply equal ‘paul’
Any help please.
Thank you