unexpected-messy
Advanced tools
Comparing version 2.2.6 to 2.2.7
@@ -456,4 +456,5 @@ var messy = require('messy'), | ||
remainingExpectedHeaders.getAll(headerName).forEach(function (headerValue) { | ||
outputHeader(headerName, headerValue); | ||
output.sp().error('// missing '); | ||
output.nl(isFirstHeader ? 0 : 1).error('// missing '); | ||
outputHeader(headerName, headerValue, true); | ||
isFirstHeader = false; | ||
}); | ||
@@ -460,0 +461,0 @@ }); |
{ | ||
"name": "unexpected-messy", | ||
"version": "2.2.6", | ||
"version": "2.2.7", | ||
"description": "Unexpected plugin for the messy library", | ||
@@ -5,0 +5,0 @@ "main": "lib/unexpectedMessy.js", |
@@ -173,3 +173,3 @@ /*global describe, it*/ | ||
expect(function () { | ||
expect(new Headers({foo: 'a', bar: 'b'}), 'to satisfy', {bar: /c/}); | ||
expect(new Headers({foo: 'a', bar: 'b'}), 'to satisfy', {bar: /c/, hey: 'there'}); | ||
}, 'to throw', | ||
@@ -179,6 +179,7 @@ 'expected\n' + | ||
'Bar: b\n' + | ||
'to satisfy { bar: /c/ }\n' + | ||
"to satisfy { bar: /c/, hey: 'there' }\n" + | ||
'\n' + | ||
'Foo: a\n' + | ||
'Bar: b // should match /c/'); | ||
'Bar: b // should match /c/\n' + | ||
'// missing Hey: there'); | ||
}); | ||
@@ -185,0 +186,0 @@ |
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
118394
2253