unexpected-mitm
Advanced tools
Comparing version 7.5.0 to 7.5.1
@@ -154,2 +154,7 @@ /* global setImmediate, after, console */ | ||
} | ||
expectedRequestProperties.host = expectedRequestProperties.host || urlObj.hostname; | ||
if (urlObj.port && typeof expectedRequestProperties.port === 'undefined') { | ||
expectedRequestProperties.port = parseInt(urlObj.port, 10); | ||
} | ||
if (urlObj.protocol === 'https:' && typeof expectedRequestProperties.encrypted === 'undefined') { | ||
@@ -560,3 +565,2 @@ expectedRequestProperties.encrypted = true; | ||
var mockRequest = new messy.HttpRequest(requestProperties); | ||
function assertMockResponse(mockResponse, callback) { | ||
@@ -563,0 +567,0 @@ var httpExchange = new messy.HttpExchange({request: mockRequest, response: mockResponse}); |
{ | ||
"name": "unexpected-mitm", | ||
"version": "7.5.0", | ||
"version": "7.5.1", | ||
"description": "Unexpected plugin for the mitm library", | ||
@@ -5,0 +5,0 @@ "main": "lib/unexpectedMitm.js", |
@@ -309,2 +309,6 @@ /*global describe, it, __dirname, beforeEach, afterEach, setTimeout, setImmediate*/ | ||
'Connection: keep-alive\n' + | ||
"// host: expected 'www.google.com' to equal 'www.example.com'\n" + | ||
'//\n' + | ||
'// -www.google.com\n' + | ||
'// +www.example.com\n' + | ||
'\n' + | ||
@@ -1008,3 +1012,3 @@ 'HTTP/1.1 200 OK' | ||
return expect({ | ||
url: 'GET http://localhost:123/', | ||
url: 'GET http://localhost/', | ||
port: 456, | ||
@@ -1016,3 +1020,3 @@ headers: { | ||
request: { | ||
url: 'http://localhost:123/', | ||
url: 'http://localhost/', | ||
headers: { | ||
@@ -1019,0 +1023,0 @@ Host: 'foobar:567' |
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
141136
1584