chai-http
chai-http copied to clipboard
HTTP Response assertions for the Chai Assertion Library.
I created a little test to demonstrate the issue: ```javascript const chai = require('chai'); const chaiHttp = require('chai-http'); const chaiDom = require('chai-dom'); const jsdom = require('jsdom'); const expect = chai.expect;...
I'm using wdio(using this because all my test run over wdio and I suppose to use this for api rest test), chai and chai-http in async mode to make some...
Hi, I'm trying to test an API that returns an error message with different status codes when different things go wrong. The problem I have encountered is that when the...
I am running into a common [gulp-mocha](https://www.npmjs.com/package/gulp-mocha) issue where [gulp](https://github.com/gulpjs/gulp) cli completes executing all the tasks but it does not exit. This is because [request](https://github.com/chaijs/chai-http/blob/master/lib/request.js#L157) creates a server when using...
In the documentation you show how it's possible to access cookies:  But where do you actually get the `req` object from? This isn't explained anywhere in the documentation.
see http://stackoverflow.com/a/36938187/6113110 It seems that simply the chai-http documentation is wrong. It sais: ``` // Send some Form Data chai.request(app) .post('/user/me') .field('_method', 'put') .field('password', '123') .field('confirmPassword', '123') ``` Which does...
While the code style might not be checking for param existence as a rule, I've seen this [query come up a lot](http://stackoverflow.com/questions/39544239/when-unit-testing-with-chai-what-does-typeerror-cannot-read-property-address) and figured a more descriptive error might be...
We use mocha, chai and chaiHttp to spin up a express server and make post and get calls. When running the server and logging in inside of our test (on...
## Changes - Project files now use `import` / `export` syntax ## Current Issues - currently not usable because chai.request stays `undefined` after chai.use and I don't know why (I...
The `TLS.Server` instance is common for both the `https` library and the `http2` library, according to the NodeJS documentation. Since it is a common ancestor, we should check for this...