chai-http
chai-http copied to clipboard
How to check the contents of a binary response payload?
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.