Skip to content

Commit

Permalink
revise error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony Metzidis committed Mar 14, 2017
1 parent 6ab3b9a commit ad0c3be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/http.js
Expand Up @@ -250,7 +250,7 @@ module.exports = function (chai, _) {

this.assert(
redirectCodes.indexOf(status) >= 0 || redirects && redirects.length
, "expected redirect status code but got " + status
, "expected redirect with 30X status code but got " + status
, "expected not to redirect but got " + status + " status"
);
});
Expand Down
2 changes: 1 addition & 1 deletion test/http.js
Expand Up @@ -195,7 +195,7 @@ describe('assertions', function () {
(function () {
var res = { status: 200 };
res.should.redirect;
}).should.throw('expected redirect status code but got 200');
}).should.throw('expected redirect with 30X status code but got 200');

(function () {
var res = { status: 301 };
Expand Down

0 comments on commit ad0c3be

Please sign in to comment.