Strict check
This commit is contained in:
parent
c8d2c9ea37
commit
f350206990
@ -137,7 +137,7 @@ assert.response = function(server, req, res, callback) {
|
||||
|
||||
// Assert response status
|
||||
if (typeof status === 'number') {
|
||||
if (response.statusCode != status) {
|
||||
if (response.statusCode !== status) {
|
||||
return callback(response, new Error(colorize(
|
||||
'[red]{Invalid response status code.}\n' +
|
||||
' Expected: [green]{' + status + '}\n' +
|
||||
|
Loading…
Reference in New Issue
Block a user