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

mocha-sinon

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mocha-sinon - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

12

mocha-sinon.js

@@ -14,2 +14,8 @@ (function(){

before(function() {
if (null == this.sinon) {
this.sinon = sinon.sandbox.create();
}
});
afterEach(function() {

@@ -20,2 +26,8 @@ if (this.sinon && 'function' === typeof this.sinon.restore) {

});
after(function() {
if (this.sinon && 'function' === typeof this.sinon.restore) {
this.sinon.restore();
}
});
}

@@ -22,0 +34,0 @@

2

package.json
{
"name": "mocha-sinon",
"version": "1.1.2",
"version": "1.1.3",
"keywords": [

@@ -5,0 +5,0 @@ "mocha",

@@ -66,2 +66,4 @@ ((function(test){

sandbox.spy(global, 'afterEach');
sandbox.spy(global, 'before');
sandbox.spy(global, 'after');

@@ -74,2 +76,4 @@ expect(subject).to.be.a('function');

expect(global.afterEach).to.have.been.called;
expect(global.before).to.have.been.called;
expect(global.after).to.have.been.called;
});

@@ -76,0 +80,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