Skip to content

Commit 1954994

Browse files
iyuqshellscape
authored andcommitted
fix sinon desperation (#209)
1 parent 4203bdf commit 1954994

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"mocha": "^3.0.2",
2323
"mocha-sinon": "^2.0.0",
2424
"should": "^11.1.0",
25-
"sinon": "^2.3.5",
25+
"sinon": "^2.3.8",
2626
"supertest": "^3.0.0",
2727
"webpack": "^3.0.0"
2828
},

test/CompilerCallbacks.test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ describe("CompilerCallbacks", function() {
1616

1717
it("watch error should be reported to console", function(done) {
1818
var error = new Error("Oh noes!");
19-
this.sinon.stub(compiler, "watch", function(opts, callback) {
19+
this.sinon.stub(compiler, "watch").callsFake(function(opts, callback) {
2020
callback(error);
2121
});
2222
this.sinon.stub(console, "error");
@@ -27,7 +27,7 @@ describe("CompilerCallbacks", function() {
2727
});
2828

2929
it("options.error should be used on watch error", function(done) {
30-
this.sinon.stub(compiler, "watch", function(opts, callback) {
30+
this.sinon.stub(compiler, "watch").callsFake(function(opts, callback) {
3131
callback(new Error("Oh noes!"));
3232
});
3333
middleware(compiler, {

0 commit comments

Comments
 (0)