Test not failing

I have in my response body the following:-
{
“labelId”: null,
“labelName”: “”,
“contactId”: 742118,
“contact”: {
“contactId”: 742118,
“name”: “Olin”,
“currencyCode”: null,
“phone”: null,
“email”: null,
“address”: null,
“address2”: null,
“zipcode”: “”,
“countryId”: null,
“imageId”: “00000000-0000-0000-0000-000000000000”,
“image”: null,
“isActive”: false,
“labelId”: null,
“publisherId”: null,
“artistId”: null,
“city”: null,
“state”: null,
“location”: null
},
“biography”: null,
“yearsActive”: ,
“influencers”: ,
“contemporaries”: ,
“tags”: ,
“isSigned”: false,
“musicStyles”: ,
“artistExternalIds”: [
{
“profileId”: “0”,
“distributorStoreId”: 1
},
{
“profileId”: “0”,
“distributorStoreId”: 9
}

I wrote the following test which i assumed would fail but it does not and i can’t figure out why

pm.test(“Profile Id should be 1”),function () {

pm.expect(response.artistExternalIds[0].profileId).to.eql(“1”)

}

and the test passes

You have a extra ) at the end of your test name which would make the test look like it passed.

thanks, i just noticed that myself and was coming here to update it

1 Like