unexpected-messy
Advanced tools
Comparing version 2.2.2 to 2.2.3
@@ -369,3 +369,3 @@ var messy = require('messy'), | ||
var exhaustively = this.flags.exhaustively; | ||
if (value && typeof value === 'object' && !(value instanceof messy.Headers)) { | ||
if (value && typeof value === 'object' && !value.isMessyHeaders) { | ||
expect(value, 'to be a hash whose keys satisfy', function (headerName) { | ||
@@ -376,3 +376,3 @@ expect(typeof value[headerName] !== 'undefined' || !subject.has(headerName), 'to be true'); | ||
var expectedHeaders = value instanceof messy.Headers ? value : new messy.Headers(value, true), | ||
var expectedHeaders = value && value.isMessyHeaders ? value : new messy.Headers(value, true), | ||
expectedHeaderNames = expectedHeaders.getNames(); | ||
@@ -405,3 +405,3 @@ | ||
var remainingExpectedHeaders = value instanceof messy.Headers ? value : new messy.Headers(value, true), | ||
var remainingExpectedHeaders = value && value.isMessyHeaders ? value : new messy.Headers(value, true), | ||
remainingSubjectHeaders = subject.clone(); | ||
@@ -408,0 +408,0 @@ |
{ | ||
"name": "unexpected-messy", | ||
"version": "2.2.2", | ||
"version": "2.2.3", | ||
"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
117175