Skip to content

Commit be2b234

Browse files
committed
test(NODE-4079): estimated document count takes no filter
1 parent 874f1df commit be2b234

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/integration/collection-management/collection.test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -565,9 +565,9 @@ describe('Collection', function () {
565565
const close = e => client.close(() => done(e));
566566
let thenFunction;
567567
if (
568-
test.title === 'should correctly perform estimatedDocumentCount on non-matching query'
568+
test.title === 'should correctly perform estimatedDocumentCount'
569569
) {
570-
thenFunction = () => collection.estimatedDocumentCount({ a: 'b' });
570+
thenFunction = () => collection.estimatedDocumentCount();
571571
} else if (test.title === 'should correctly perform countDocuments on non-matching query') {
572572
thenFunction = () => collection.countDocuments({ a: 'b' });
573573
}

test/integration/read-write-concern/readconcern.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ describe('ReadConcern', function () {
234234
done();
235235
});
236236
} else if (test.commandName === 'count') {
237-
collection.estimatedDocumentCount({ a: 1 }, err => {
237+
collection.estimatedDocumentCount(err => {
238238
expect(err).to.not.exist;
239239
validateTestResults(started, succeeded, test.commandName, test.readConcern.level);
240240
done();

0 commit comments

Comments
 (0)