File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -42,8 +42,8 @@ module.exports = function (dependencies) {
42
42
) ;
43
43
} ;
44
44
45
- Provider . prototype . shutdown = function shutdown ( ) {
46
- this . client . shutdown ( ) ;
45
+ Provider . prototype . shutdown = function shutdown ( callback ) {
46
+ this . client . shutdown ( callback ) ;
47
47
} ;
48
48
49
49
return Provider ;
Original file line number Diff line number Diff line change @@ -174,10 +174,11 @@ describe('Provider', function () {
174
174
175
175
describe ( 'shutdown' , function ( ) {
176
176
it ( 'invokes shutdown on the client' , function ( ) {
177
+ const callback = sinon . spy ( ) ;
177
178
const provider = new Provider ( { } ) ;
178
- provider . shutdown ( ) ;
179
+ provider . shutdown ( callback ) ;
179
180
180
- expect ( fakes . client . shutdown ) . to . be . calledOnce ;
181
+ expect ( fakes . client . shutdown ) . to . be . calledOnceWithExactly ( callback ) ;
181
182
} ) ;
182
183
} ) ;
183
184
} ) ;
You can’t perform that action at this time.
0 commit comments