Merge pull request #135 from Vestride/greenkeeper/sinon-2.1.0

Update sinon to the latest version 🚀
pull/138/head
Glen Cheney 7 years ago committed by GitHub
commit de62e26169

@ -62,7 +62,7 @@
"gulp-shell": "^0.6.1", "gulp-shell": "^0.6.1",
"gulp-util": "^3.0.7", "gulp-util": "^3.0.7",
"mocha": "^3.0.0", "mocha": "^3.0.0",
"sinon": "^1.17.3", "sinon": "^2.1.0",
"webpack": "^2.2.1" "webpack": "^2.2.1"
} }
} }

@ -79,13 +79,15 @@ describe('shuffle', function () {
return document.getElementById(id); return document.getElementById(id);
} }
function whenTransitionDoneStub(element, itemCallback, done) {
setTimeout(done, 0);
}
describe('regular fixture', function () { describe('regular fixture', function () {
beforeEach(function (done) { beforeEach(function (done) {
// Mock the transition end event wrapper. // Mock the transition end event wrapper.
sinon.stub(Shuffle.prototype, '_whenTransitionDone', function (element, itemCallback, done) { sinon.stub(Shuffle.prototype, '_whenTransitionDone').callsFake(whenTransitionDoneStub);
setTimeout(done, 0);
});
appendFixture('regular').then(done); appendFixture('regular').then(done);
}); });
@ -558,9 +560,7 @@ describe('shuffle', function () {
describe('delimeter fixture', function () { describe('delimeter fixture', function () {
beforeEach(function (done) { beforeEach(function (done) {
// Mock the transition end event wrapper. // Mock the transition end event wrapper.
sinon.stub(Shuffle.prototype, '_whenTransitionDone', function (element, itemCallback, done) { sinon.stub(Shuffle.prototype, '_whenTransitionDone').callsFake(whenTransitionDoneStub);
setTimeout(done, 0);
});
appendFixture('delimeter').then(done); appendFixture('delimeter').then(done);
}); });

Loading…
Cancel
Save