mocha-sinon
Advanced tools
Comparing version 1.1.2 to 1.1.3
@@ -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 @@ |
{ | ||
"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 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7474
23340
109