Skip to content

Commit ddd2044

Browse files
authored
Merge pull request #34 from YoshinoriN/update-sinon
Update sinon to 6.3.5
2 parents 3dcd35e + 3782c72 commit ddd2044

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"mocha": "^2.5.3",
5353
"proxyquire": "^1.7.9",
5454
"rewire": "^2.5.1",
55-
"sinon": "^1.17.4"
55+
"sinon": "^6.3.5"
5656
},
5757
"engines": {
5858
"node": ">=6.9.0"

test/scripts/context.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ describe('context', function() {
2121
result.should.eql(args);
2222
spy.calledOnce.should.be.true;
2323
spy.lastCall.args[0].should.eql(args);
24-
spy.reset();
24+
spy.resetHistory();
2525
});
2626
});
2727

@@ -42,7 +42,7 @@ describe('context', function() {
4242
result.should.eql(args);
4343
spy.calledOnce.should.be.true;
4444
spy.lastCall.args[0].should.eql(args);
45-
spy.reset();
45+
spy.resetHistory();
4646
done();
4747
});
4848
});
@@ -52,7 +52,7 @@ describe('context', function() {
5252
if (err) return done(err);
5353

5454
spy.calledOnce.should.be.true;
55-
spy.reset();
55+
spy.resetHistory();
5656
done();
5757
});
5858
});

test/scripts/help.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ describe('help', function() {
142142
});
143143

144144
it('show version info', function() {
145-
sinon.stub(hexo, 'call', function() {
145+
sinon.stub(hexo, 'call').callsFake(() => {
146146
return Promise.resolve();
147147
});
148148

0 commit comments

Comments
 (0)