We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The response headers are checked before the response status code, so in the following test, I expect :
expected 200 "OK", got 404 "Not Found"
instead of :
expected "Content-Type" of "application/json; charset=ISO-8859-1", got "text/html; charset=utf-8"
Source to reproduce :
it('should return a status code error', function (done) { supertest('http://hoat.fr') .get('/notfound') .expect(200) .expect('Content-Type', 'application/json; charset=ISO-8859-1') .end(done); });
The text was updated successfully, but these errors were encountered:
Fix : In test.js, move the lines to 201-207 to 155
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
The response headers are checked before the response status code, so in the following test, I expect :
expected 200 "OK", got 404 "Not Found"
instead of :
expected "Content-Type" of "application/json; charset=ISO-8859-1", got "text/html; charset=utf-8"
Source to reproduce :
The text was updated successfully, but these errors were encountered: