chaijs / chai-http

HTTP Response assertions for the Chai Assertion Library.
http://chaijs.com/plugins/chai-http
633 stars 113 forks source link

How to check the contents of a binary response payload? #273

Open Craigfis opened 4 years ago

Craigfis commented 4 years ago

If I'm getting JSON or text back from a request I can look at the .body or .text property. But I can't see any way of inspecting the value of a binary payload response. I'd like to at least verify that it is of the expected length.