File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,9 @@ import {
2020 MongoRuntimeError ,
2121 ns ,
2222 type OperationDescription ,
23- OpMsgResponse
23+ OpMsgRequest ,
24+ OpMsgResponse ,
25+ OpQueryRequest
2426} from '../../mongodb' ;
2527import * as mock from '../../tools/mongodb-mock/index' ;
2628import { generateOpMsgBuffer , getSymbolFrom } from '../../tools/utils' ;
@@ -1078,7 +1080,7 @@ describe('new Connection()', function () {
10781080 }
10791081
10801082 expect ( writeCommandSpy ) . to . have . been . called ;
1081- expect ( writeCommandSpy . firstCall . args [ 0 ] instanceof Msg ) . to . equal ( true ) ;
1083+ expect ( writeCommandSpy . firstCall . args [ 0 ] instanceof OpMsgRequest ) . to . equal ( true ) ;
10821084 } ) ;
10831085 } ) ;
10841086
@@ -1130,7 +1132,7 @@ describe('new Connection()', function () {
11301132 }
11311133
11321134 expect ( writeCommandSpy ) . to . have . been . called ;
1133- expect ( writeCommandSpy . firstCall . args [ 0 ] instanceof Query ) . to . equal ( true ) ;
1135+ expect ( writeCommandSpy . firstCall . args [ 0 ] instanceof OpQueryRequest ) . to . equal ( true ) ;
11341136 } ) ;
11351137 } ) ;
11361138} ) ;
You can’t perform that action at this time.
0 commit comments