File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 52
52
"mocha" : " ^2.5.3" ,
53
53
"proxyquire" : " ^1.7.9" ,
54
54
"rewire" : " ^2.5.1" ,
55
- "sinon" : " ^1.17.4 "
55
+ "sinon" : " ^6.3.5 "
56
56
},
57
57
"engines" : {
58
58
"node" : " >=6.9.0"
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ describe('context', function() {
21
21
result . should . eql ( args ) ;
22
22
spy . calledOnce . should . be . true ;
23
23
spy . lastCall . args [ 0 ] . should . eql ( args ) ;
24
- spy . reset ( ) ;
24
+ spy . resetHistory ( ) ;
25
25
} ) ;
26
26
} ) ;
27
27
@@ -42,7 +42,7 @@ describe('context', function() {
42
42
result . should . eql ( args ) ;
43
43
spy . calledOnce . should . be . true ;
44
44
spy . lastCall . args [ 0 ] . should . eql ( args ) ;
45
- spy . reset ( ) ;
45
+ spy . resetHistory ( ) ;
46
46
done ( ) ;
47
47
} ) ;
48
48
} ) ;
@@ -52,7 +52,7 @@ describe('context', function() {
52
52
if ( err ) return done ( err ) ;
53
53
54
54
spy . calledOnce . should . be . true ;
55
- spy . reset ( ) ;
55
+ spy . resetHistory ( ) ;
56
56
done ( ) ;
57
57
} ) ;
58
58
} ) ;
Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ describe('help', function() {
142
142
} ) ;
143
143
144
144
it ( 'show version info' , function ( ) {
145
- sinon . stub ( hexo , 'call' , function ( ) {
145
+ sinon . stub ( hexo , 'call' ) . callsFake ( ( ) => {
146
146
return Promise . resolve ( ) ;
147
147
} ) ;
148
148
You can’t perform that action at this time.
0 commit comments