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

sinon

Package Overview
Dependencies
Maintainers
0
Versions
208
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sinon - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

5

Changelog.txt

@@ -0,1 +1,6 @@

== 1.0.2 / 2011-02-22
* Fix JSON bug in package.json
* Sandbox no longer tries to use a fake server if config says so, but
server is not loaded
== 1.0.1 / 2010-12-20

@@ -2,0 +7,0 @@ * Make sure sinon.sandbox is exposed in node.js (fix by Gord Tanner)

7

lib/sinon/sandbox.js

@@ -68,4 +68,9 @@ /**

useFakeServer: function useFakeServer() {
this.server = (this.serverPrototype || sinon.fakeServer).create();
var proto = this.serverPrototype || sinon.fakeServer;
if (!proto || !proto.create) {
return null;
}
this.server = proto.create();
return this.add(this.server);

@@ -72,0 +77,0 @@ },

4

package.json
{
"name": "sinon",
"description": "JavaScript test spies, stubs and mocks.",
"version": "1.0.1",
"version": "1.0.2",
"homepage": "http://cjohansen.no/sinon/",

@@ -17,3 +17,3 @@ "author": "Christian Johansen",

{ "type": "BSD",
"url": "http://github.com/cjohansen/Sinon.JS/blob/master/LICENSE",
"url": "http://github.com/cjohansen/Sinon.JS/blob/master/LICENSE"
}

@@ -20,0 +20,0 @@ ],

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