Assertion error on 'to be above' test

im sure im missing something but im unsure what
i want to show that tracktype is above 0

i wrote this:-
pm.test(“Track type is modified correctly”, function (){

pm.expect(response.trackType).to.be.above(0)

})

and im getting this error
AssertionError: expected undefined to be a number or a date

1 Like

Can you show an example response?

I would also console log the trackType to see what is actually being returned.

Is it a number, date or string?

console.log(response.trackType)
1 Like

i managed to fix this myself!

1 Like