Skip to content

Commit

Permalink
Use sinon.createSandbox instead of sinon.sandbox.create
Browse files Browse the repository at this point in the history
This method was added in sinon v3.10.0:

  sinonjs/sinon#1515

and a deprecation warning for sinon.sandbox.create was added in sinon
v5.0.1:

  - sinonjs/sinon#1768
  - sinonjs/sinon@4fc7c65d#diff-7ac78866bb2aab0e4513c3e57f189c88R50
  • Loading branch information
lencioni committed Jul 3, 2018
1 parent c2c0107 commit 785af72
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

var sinon = require('sinon');

var sandbox = sinon.sandbox.create();
var sandbox = sinon.createSandbox();

module.exports = sandbox;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"test": "eslint . && jscs . && mocha"
},
"peerDependencies": {
"sinon": "*"
"sinon": ">=3.10.0"
},
"devDependencies": {
"chai": "3.2.0",
Expand Down

0 comments on commit 785af72

Please sign in to comment.