Socket
Socket
Sign inDemoInstall

nock

Package Overview
Dependencies
Maintainers
1
Versions
430
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nock - npm Package Compare versions

Comparing version 0.5.5 to 0.5.6

.travis.yml

3

lib/recorder.js

@@ -28,2 +28,3 @@ var http = require('http');

if (requestBody) {
ret.push(', ');
ret.push(JSON.stringify(requestBody));

@@ -33,3 +34,3 @@ }

ret.push(' .reply(')
ret.push(' .reply(');
ret.push(res.statusCode.toString());

@@ -36,0 +37,0 @@ ret.push(', ');

{ "name" : "nock"
, "description" : "HTTP Server mocking for Node.js"
, "tags" : ["Mock", "HTTP", "testing", "isolation"]
, "version" : "0.5.5"
, "version" : "0.5.6"
, "author" : "Pedro Teixeira <pedro.teixeira@gmail.com>"

@@ -23,3 +23,3 @@ , "contributors" :

}
, "scripts": { "test": "node_modules/.bin/tap tests" }
, "scripts": { "test": "node node_modules/tap/bin/tap.js tests" }
}

@@ -1,2 +0,2 @@

# Nock
# Nock [![Build Status](https://secure.travis-ci.org/pgte/nock.png)](http://travis-ci.org/pgte/nock)

@@ -3,0 +3,0 @@ Nock is an HTTP mocking and expectations library for Node.js

@@ -22,3 +22,3 @@ var nock = require('../.')

t.equal(ret.length, 1);
t.equal(ret[0].indexOf("\nnock('expensecat.iriscouch.com')\n .post('/'\"ABCDEF\")\n .reply("), 0);
t.equal(ret[0].indexOf("\nnock('expensecat.iriscouch.com')\n .post('/', \"ABCDEF\")\n .reply("), 0);
t.end();

@@ -25,0 +25,0 @@ });

Sorry, the diff of this file is not supported yet

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