unexpected-messy
Advanced tools
Comparing version 1.5.0 to 1.5.1
@@ -298,5 +298,7 @@ var messy = require('messy'), | ||
var satisfiedIndex = -1; | ||
for (var j = 0 ; j < remainingExpectedHeaders.valuesByName[headerName] ; j += 1) { | ||
for (var j = 0 ; j < remainingExpectedHeaders.valuesByName[headerName].length ; j += 1) { | ||
try { | ||
expect(subjectHeaderValue, 'to satisfy', remainingExpectedHeaders.valuesByName[j]); | ||
console.log(subjectHeaderValue, 'to satisfy', remainingExpectedHeaders.valuesByName[headerName][j]); | ||
expect(subjectHeaderValue, 'to satisfy', remainingExpectedHeaders.valuesByName[headerName][j]); | ||
satisfiedIndex = j; | ||
@@ -306,5 +308,6 @@ break; | ||
} | ||
if (satisfiedIndex !== -1) { | ||
outputHeader(headerName, subjectHeaderValue); | ||
subject.remove(headerName, i); | ||
remainingSubjectHeaders.remove(headerName, i); | ||
remainingExpectedHeaders.remove(headerName, satisfiedIndex); | ||
@@ -311,0 +314,0 @@ } |
{ | ||
"name": "unexpected-messy", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"description": "Unexpected plugin for the messy library", | ||
@@ -5,0 +5,0 @@ "main": "lib/unexpectedMessy.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
107487
2024