# Assertion error on 'to be above' test

**URL:** <https://community.postman.com/t/assertion-error-on-to-be-above-test/39141>\
**Category:** Help Hub\
**Created:** [September 15, 2022, 9:42am UTC](https://community.postman.com/t/assertion-error-on-to-be-above-test/39141 "2022-09-15T09:42:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hannahbroch](https://avatars.discourse-cdn.com/v4/letter/h/ecae2f/32.png) [@hannahbroch](https://community.postman.com/u/hannahbroch)\
**Post date:** [September 15, 2022, 9:42am UTC](https://community.postman.com/t/assertion-error-on-to-be-above-test/39141/1 "2022-09-15T09:42:48Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![michaelderekjones](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/michaelderekjones/32/14819_2.png) [@michaelderekjones](https://community.postman.com/u/michaelderekjones)\
**Post date:** [September 15, 2022, 10:59am UTC](https://community.postman.com/t/assertion-error-on-to-be-above-test/39141/2 "2022-09-15T10:59:09Z")

</div>

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?

```auto
console.log(response.trackType)

```

---

<div class="post-metadata">

**Author:** ![hannahbroch](https://avatars.discourse-cdn.com/v4/letter/h/ecae2f/32.png) [@hannahbroch](https://community.postman.com/u/hannahbroch)\
**Post date:** [September 16, 2022, 5:33am UTC](https://community.postman.com/t/assertion-error-on-to-be-above-test/39141/3 "2022-09-16T05:33:55Z")

</div>

i managed to fix this myself!
