Need help to know pm.expect API

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()’’, ‘’);
pm.expect()’’, ‘’);
But what else ? Where can I find the all methods of pm.expect ?



This blog post might be helpful. Writing tests in Postman

From that article:
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

Thanks @mick.mcbride. It’s really helpful