chai-http
chai-http copied to clipboard
HTTP Response assertions for the Chai Assertion Library.
it('post the user', () => { const value = [{ text: 'Todo1' }, { text: 'Todo2' }]; return request(app) .post('/api/todos/') .send({value}) .then(res => { res.should.have.status(201); }); }); Got Error: 1...
Please, can you publish actual version to npm? Last published release is 3 years old
We want to send compressed body by gzip HTTP request in chai-http in mocha. ```js let chai = require('chai'); let chaiHttp = require('chai-http'); const zlib = require('zlib'); chai.use(chaiHttp); object =...
Going through the open PRs and issues is disheartening especially when compared to how well other libs like _Supertest_ are doing. Is this lib still to be maintained? Are new...
Hello, First of all, thanks for the chai-http. I have modified status assert error output to print status code as text as well as number. I've also modified tests and...
Hi everyone, I was wondering if anyone else has experienced this bug, or knows why it might be happening. I am currently setting up my testing framework for an Express...
Hello I have the follow code ``` it("it should gives the token", (done) => { var agent = chai.request.agent(url) agent .post('path') .set({ "Content-Type": "application/x-www-form-urlencoded", }) .send({ "username":"user", "password":"ps", "domain":"ForAllDomains", "authMode":"user",...
When running the tests in a browser with a PATCH type request, "PATCH" method is sent in all lower case letters. When the request uses CORS, the preflight OPTIONS is...
Apologies if this is out of scope as an issue, but I'm having trouble comprehending an issue with chai-http's sent data and a tested function that appears to center on...