Comparing version 0.0.2 to 0.0.3
@@ -10,4 +10,6 @@ | ||
this.method = options.method || 'GET'; | ||
this.connection = {}; | ||
this.cookies = {}; | ||
}; | ||
module.exports = MockRequest; |
@@ -30,2 +30,5 @@ var _ = require('lodash'), | ||
}; | ||
MockResponse.prototype.getHeader = function(name) { | ||
return this.headers[name]; | ||
}; | ||
MockResponse.prototype.end = function(str) { | ||
@@ -32,0 +35,0 @@ this.buffer.push(str); |
{ | ||
"name": "hammock", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Node.js mock / polyfill http object library for http req / res", | ||
@@ -21,4 +21,7 @@ "main": "index.js", | ||
], | ||
"dependencies": { | ||
"lodash": "1.0.0-rc.3" | ||
}, | ||
"author": "Tommy Messbauer", | ||
"license": "MIT" | ||
} |
3136
52
1
+ Addedlodash@1.0.0-rc.3
+ Addedlodash@1.0.0-rc.3(transitive)