chai-http
chai-http copied to clipboard
HTTP Response assertions for the Chai Assertion Library.
Hello Your package.json declares the following dependency ``` "@types/superagent": "^3.8.3", ``` https://github.com/chaijs/chai-http/blob/master/package.json#L54 But that version of `@types/superagent` contains a bug: https://github.com/DefinitelyTyped/DefinitelyTyped/issues/12044 That bug prevents some of my dependencies to compile,...
Hello! We are using this library quite extensively, but we have the need to assert aspects about the cookies being set by the server, like `Domain`, `Max-Age` and `Path`, but...
Is the a way to ensure `keepOpen()` is the default during a run, rather than needing to specify it every time? If this is already there, then I seem to...
It is not clear and some weird. `read ECONNRESET` exception is occurred when I use chai.request() with server that is listening port 3000 but the others port. Problem code is...
It seems that a best practice to prevent cross-site script injection is to return the following string at the top of any Content-Type: application/json. The string is to force a...
if using redirects(5), .then() works well for a POST. But if using redirect(0), which I only want to get the first http req's response, .then() never run. The workaround is...
Chai HTTP supports only the "expect" and "should" interfaces. It would be great if it also supported the "assert" interface.
Code like this does not work: `var agent = chai.request.agent(urls.central).auth(su.username, su.password);` The default auth is NOT used in subsequent requests made with this agent, contrary to the superagent documentation at...
I'm writing an integration test to make sure the rate limiter middleware on my app is working. This necessitated sequential Promise execution to keep track of how many requests have...