# Need help to know pm.expect API

**URL:** <https://community.postman.com/t/need-help-to-know-pm-expect-api/2160>\
**Category:** Help Hub\
**Tags:** api\
**Created:** [July 27, 2018, 2:04am UTC](https://community.postman.com/t/need-help-to-know-pm-expect-api/2160 "2018-07-27T02:04:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![su.ziying](https://avatars.discourse-cdn.com/v4/letter/s/73ab20/32.png) [@su.ziying](https://community.postman.com/u/su.ziying)\
**Post date:** [July 27, 2018, 2:04am UTC](https://community.postman.com/t/need-help-to-know-pm-expect-api/2160/1 "2018-07-27T02:04:50Z")

</div>

Hi Everyone,

I am here to hope getting some help that how should I know the all APIs of pm.expect ?

For example, as far as I know there are:  
pm.expect().to.equal();  
pm.expect().to.have.property(’’, ‘’);  
pm.expect().to.have.property(’’, ‘’);  
But what else ? Where can I find the all methods of pm.expect ?

Thanks

---

<div class="post-metadata">

**Author:** ![mick-mcbride](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/mick-mcbride/32/783_2.png) [@mick-mcbride](https://community.postman.com/u/mick-mcbride)\
**Post date:** [July 27, 2018, 4:57pm UTC](https://community.postman.com/t/need-help-to-know-pm-expect-api/2160/2 "2018-07-27T16:57:56Z")

</div>

@su.ziying

This blog post might be helpful. [Writing tests in Postman](http://blog.getpostman.com/2017/10/25/writing-tests-in-postman/)

From that article:  
“pm.expect()  
The pm.expect() assertion function was built on the shoulders of the popular JavaScript test library ChaiJS BDD. Using a similar syntax, pm.expect() makes it easy to write readable tests, and you can deal with assertions of data from a response or variables.”

Link to the ChaiJS BDD documentation: [ChaiJS BDD](http://www.chaijs.com/api/bdd/)

---

<div class="post-metadata">

**Author:** ![su.ziying](https://avatars.discourse-cdn.com/v4/letter/s/73ab20/32.png) [@su.ziying](https://community.postman.com/u/su.ziying)\
**Post date:** [August 15, 2018, 3:40am UTC](https://community.postman.com/t/need-help-to-know-pm-expect-api/2160/3 "2018-08-15T03:40:16Z")

</div>

Thanks @mick-mcbride. It’s really helpful
