unexpected-mitm
Advanced tools
Comparing version 9.5.0 to 9.5.1
@@ -1018,4 +1018,8 @@ /* global setImmediate, process, after, console */ | ||
trimHeadersLower(assertionMockRequest); | ||
var assertionExchange = new messy.HttpExchange({request: assertionMockRequest, response: mockResponse || mockResponseError}); | ||
var assertionExchange = new messy.HttpExchange({request: assertionMockRequest}); | ||
if (mockResponse) { | ||
assertionExchange.response = mockResponse; | ||
} else if (mockResponseError) { | ||
assertionExchange.response = mockResponseError; | ||
} | ||
return expect(assertionExchange, 'to satisfy', {request: expectedRequestProperties}); | ||
@@ -1052,3 +1056,8 @@ }).then(function () { | ||
var mockRequest = new messy.HttpRequest(requestProperties); | ||
var httpExchange = new messy.HttpExchange({request: mockRequest, response: mockResponse || mockResponseError}); | ||
var httpExchange = new messy.HttpExchange({request: mockRequest}); | ||
if (mockResponse) { | ||
httpExchange.response = mockResponse; | ||
} else if (mockResponseError) { | ||
httpExchange.response = mockResponseError; | ||
} | ||
httpConversation.exchanges.push(httpExchange); | ||
@@ -1055,0 +1064,0 @@ // only attempt request validation with a mock |
{ | ||
"name": "unexpected-mitm", | ||
"version": "9.5.0", | ||
"version": "9.5.1", | ||
"description": "Unexpected plugin for the mitm library", | ||
@@ -39,2 +39,3 @@ "author": "Andreas Lind <andreas@one.com>", | ||
"sinon": "1.17.2", | ||
"socketerrors-papandreou": "0.2.0-patch2", | ||
"unexpected": "10.15.1", | ||
@@ -41,0 +42,0 @@ "unexpected-documentation-site-generator": "^4.0.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
59756
1089
18