Skip to content

Commit

Permalink
Merge pull request #503 from visionmedia/upgrade-dependencies
Browse files Browse the repository at this point in the history
Upgrade dependencies
  • Loading branch information
rimiti committed Sep 5, 2018
2 parents 979999f + 1fc760b commit 92578c7
Show file tree
Hide file tree
Showing 4 changed files with 611 additions and 438 deletions.
8 changes: 4 additions & 4 deletions lib/test.js
Expand Up @@ -236,14 +236,14 @@ Test.prototype._assertHeader = function(header, res) {

if (typeof actual === 'undefined') return new Error('expected "' + field + '" header field');
// This check handles header values that may be a String or single element Array
if ((actual instanceof Array && actual.toString() === fieldExpected) ||
fieldExpected === actual) {
if ((actual instanceof Array && actual.toString() === fieldExpected)
|| fieldExpected === actual) {
return;
}
if (fieldExpected instanceof RegExp) {
if (!fieldExpected.test(actual)) {
return new Error('expected "' + field + '" matching ' +
fieldExpected + ', got "' + actual + '"');
return new Error('expected "' + field + '" matching '
+ fieldExpected + ', got "' + actual + '"');
}
} else {
return new Error('expected "' + field + '" of "' + fieldExpected + '", got "' + actual + '"');
Expand Down

0 comments on commit 92578c7

Please sign in to comment.