Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mock-request-response

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mock-request-response - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

2

package.json

@@ -5,3 +5,3 @@ {

"description": "Mock request and response objects for node.js",
"version": "0.1.0",
"version": "0.1.1",
"repository": {

@@ -8,0 +8,0 @@ "type": "git",

(function () {
function Response (setup) {
setup = setup || { };
setup.headers = setup.headers || { };
this._internals = setup;

@@ -5,0 +7,0 @@ this.socket = {

@@ -19,4 +19,13 @@ var vows = require('vows'),

}
},
'and a header is set': {
topic: function (topic) {
topic.setHeader('foo', 'bar');
return topic;
},
'that the header is set correctly': function (topic) {
assert.equal(topic.getHeader('foo'), 'bar');
}
}
}
}).export(module);
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc