Skip to content

Commit 085e063

Browse files
authored
chore(cli-repl): avoid deprecated count in --shell test (#1211)
`.count()` is deprecated and should not be used, and makes this test currently fail in `apiStrict` mode because it uses the `count` command since the recent driver version bump to 4.4.0.
1 parent f0d08b1 commit 085e063

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cli-repl/src/cli-repl.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1067,7 +1067,7 @@ describe('CliRepl', () => {
10671067
expect(output).to.match(/Inserted: ObjectId\("[a-z0-9]{24}"\)/);
10681068
expect(exitCode).to.equal(null);
10691069

1070-
input.write('print("doc count", insertTestCollection.count())\n');
1070+
input.write('print("doc count", insertTestCollection.countDocuments())\n');
10711071
await waitEval(cliRepl.bus);
10721072
expect(output).to.include('doc count 1');
10731073

0 commit comments

Comments
 (0)