File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -410,7 +410,7 @@ export class TypedEventEmitter<Events extends EventsDescription> extends EventEm
410
410
...args : Parameters < Events [ EventKey ] >
411
411
) : void {
412
412
this . emit ( event , ...args ) ;
413
- if ( this . component ) this . mongoLogger ?. debug ?. ( this . component , args [ 0 ] ) ;
413
+ if ( this . component ) this . mongoLogger ?. debug ( this . component , args [ 0 ] ) ;
414
414
}
415
415
}
416
416
Original file line number Diff line number Diff line change @@ -25,7 +25,16 @@ class MockServer {
25
25
this . pool = { generation : 1 } ;
26
26
this . description = new ServerDescription ( `${ options . host } :${ options . port } ` ) ;
27
27
this . description . type = ServerType . Unknown ;
28
- this . topology = { s : { topologyId : 1 } , client : { mongoLogger : { } } } ;
28
+ this . topology = {
29
+ s : { topologyId : 1 } ,
30
+ client : {
31
+ mongoLogger : {
32
+ debug : function ( _v : any , _x : any ) {
33
+ return ;
34
+ }
35
+ }
36
+ }
37
+ } ;
29
38
}
30
39
}
31
40
You can’t perform that action at this time.
0 commit comments