Res.text or res.text() ?!

Tell us what’s happening:
I see “res.text” being used in some exercises in the Quality Assurance and Testing with Chai course.
Where is the documentation for this? I just see res.text() being a method, not a property ( Express.js docs )

Thanks.

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.183 Safari/537.36.

Challenge: Run Functional Tests on API Endpoints using Chai-HTTP

Link to the challenge:

I think it’s from superagent which chai-http uses.

2 Likes

Thank you for this. Been looking for res. explanations