mock-express-request
Advanced tools
Comparing version 0.2.0 to 0.2.2
@@ -69,4 +69,8 @@ 'use strict'; | ||
MockRequest.call(this, options); | ||
this.cookies = {}; | ||
// Cookies may be passed in directly. | ||
// If not, we provide an empty stub. | ||
if (!this.cookies) { | ||
this.cookies = {}; | ||
} | ||
} | ||
@@ -73,0 +77,0 @@ util.inherits(MockExpressRequest, MockRequest); |
{ | ||
"name": "mock-express-request", | ||
"version": "0.2.0", | ||
"version": "0.2.2", | ||
"description": "Nodejs library to mock express http request", | ||
@@ -22,3 +22,3 @@ "keywords": [ | ||
"scripts": { | ||
"test": "grunt test" | ||
"test": "grunt test && nsp check" | ||
}, | ||
@@ -46,20 +46,21 @@ "repository": { | ||
"devDependencies": { | ||
"chai": "^3.5.0", | ||
"grunt": "^0.4.5", | ||
"grunt-cli": "^1.1.0", | ||
"grunt-contrib-jshint": "^1.0.0", | ||
"chai": "^4.1.2", | ||
"grunt": "^1.0.1", | ||
"grunt-cli": "^1.2.0", | ||
"grunt-contrib-jshint": "^1.1.0", | ||
"grunt-contrib-watch": "^1.0.0", | ||
"grunt-mocha-test": "^0.12.7", | ||
"jshint-stylish": "^2.1.0", | ||
"mocha": "^2.4.5" | ||
"grunt-mocha-test": "^0.13.3", | ||
"jshint-stylish": "^2.2.1", | ||
"mocha": "^4.0.1", | ||
"nsp": "^3.1.0" | ||
}, | ||
"dependencies": { | ||
"accepts": "^1.3.2", | ||
"fresh": "^0.3.0", | ||
"lodash": "^4.17.0", | ||
"accepts": "^1.3.4", | ||
"fresh": "^0.5.2", | ||
"lodash": "^4.17.4", | ||
"mock-req": "^0.2.0", | ||
"parseurl": "^1.3.1", | ||
"range-parser": "^1.0.3", | ||
"type-is": "^1.6.12" | ||
"parseurl": "^1.3.2", | ||
"range-parser": "^1.2.0", | ||
"type-is": "^1.6.15" | ||
} | ||
} |
@@ -27,2 +27,3 @@ # mock-express-request | ||
url: '/stuff?q=thing', | ||
cookies: { token: "MYTOKEN" }, | ||
headers: { | ||
@@ -72,2 +73,2 @@ 'Accept': 'text/plain' | ||
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
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
17350
470
73
9
3
+ Addedfresh@0.5.2(transitive)
- Removedfresh@0.3.0(transitive)
Updatedaccepts@^1.3.4
Updatedfresh@^0.5.2
Updatedlodash@^4.17.4
Updatedparseurl@^1.3.2
Updatedrange-parser@^1.2.0
Updatedtype-is@^1.6.15