Skip to content

Commit

Permalink
Fix sinon deprecation warns
Browse files Browse the repository at this point in the history
  • Loading branch information
runk committed May 22, 2017
1 parent f16435b commit af11087
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe('index', function() {
var watchHandler;
beforeEach(function() {
sandbox = sinon.sandbox.create();
sandbox.stub(fs, 'watch', function(path, cb) { watchHandler = cb; });
sandbox.stub(fs, 'watch').callsFake(function(path, cb) { watchHandler = cb; });
sandbox.spy(fs, 'readFile');
sandbox.spy(fs, 'readFileSync');
});
Expand Down Expand Up @@ -103,7 +103,7 @@ describe('index', function() {
assert(reader instanceof Reader);
assert(fs.readFile.calledOnce);
fs.readFile.restore();
sandbox.stub(fs, 'readFile', function(path, cb) { cb(new Error('Crazy shit')); });
sandbox.stub(fs, 'readFile').callsFake(function(path, cb) { cb(new Error('Crazy shit')); });
watchHandler();
break;

Expand Down

0 comments on commit af11087

Please sign in to comment.