Skip to content

Commit ad0c3be

Browse files
author
Anthony Metzidis
committed
revise error message
1 parent 6ab3b9a commit ad0c3be

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/http.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ module.exports = function (chai, _) {
250250

251251
this.assert(
252252
redirectCodes.indexOf(status) >= 0 || redirects && redirects.length
253-
, "expected redirect status code but got " + status
253+
, "expected redirect with 30X status code but got " + status
254254
, "expected not to redirect but got " + status + " status"
255255
);
256256
});

test/http.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ describe('assertions', function () {
195195
(function () {
196196
var res = { status: 200 };
197197
res.should.redirect;
198-
}).should.throw('expected redirect status code but got 200');
198+
}).should.throw('expected redirect with 30X status code but got 200');
199199

200200
(function () {
201201
var res = { status: 301 };

0 commit comments

Comments
 (0)