Skip to content

Commit 6cc1583

Browse files
finish rebase
1 parent ff10aa5 commit 6cc1583

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/unit/cmap/connection.test.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff 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';
2527
import * as mock from '../../tools/mongodb-mock/index';
2628
import { 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
});

0 commit comments

Comments
 (0)