Skip to content
This repository has been archived by the owner on Apr 15, 2020. It is now read-only.

Commit

Permalink
Merge pull request #3 from joelmukuthu/greenkeeper/sinon-4.4.3
Browse files Browse the repository at this point in the history
Update sinon to the latest version 🚀
  • Loading branch information
joelmukuthu committed Mar 12, 2018
2 parents 9e1423a + e694b1d commit c49a541
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"load-grunt-tasks": "^3.5.0",
"mocha": "^5.0.4",
"phantomjs-prebuilt": "^2.1.8",
"sinon": "^2.2.0",
"sinon": "^4.4.3",
"unexpected": "^10.13.3",
"unexpected-sinon": "^10.2.1"
},
Expand Down
6 changes: 3 additions & 3 deletions test/spec/services/scrollie.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ describe('Service: scrollie', function () {
beforeEach(function () {
// create a mock requestAnimation that calls the animation function
// syncronously
sinon.stub(mocks, 'requestAnimation', function (animate) {
sinon.stub(mocks, 'requestAnimation').callsFake(function (animate) {
animate();
});
});
Expand Down Expand Up @@ -188,10 +188,10 @@ describe('Service: scrollie', function () {
var $timeout;

beforeEach(function () {
sinon.stub(mocks, 'requestAnimation', function (animate, delay) {
sinon.stub(mocks, 'requestAnimation').callsFake(function (animate, delay) {
return $timeout(animate, delay);
});
sinon.stub(mocks, 'cancelAnimation', function (timeout) {
sinon.stub(mocks, 'cancelAnimation').callsFake(function (timeout) {
return $timeout.cancel(timeout);
});
});
Expand Down

0 comments on commit c49a541

Please sign in to comment.