@@ -315,35 +315,6 @@ describe('CRUD API', function () {
315315 await db . collection ( 't1' ) . drop ( ) ;
316316 } ) ;
317317
318- // TODO(NODE-7219): Remove test as it doesn't test correct aggregation execution
319- // it('allMethods', async function () {
320- // const cursor = db.collection('t1').aggregate([{ $match: {} }], {
321- // allowDiskUse: true,
322- // batchSize: 2,
323- // maxTimeMS: 50
324- // });
325- //
326- // // Exercise all the options
327- // cursor
328- // .geoNear({ geo: 1 })
329- // .group({ group: 1 })
330- // .limit(10)
331- // .match({ match: 1 })
332- // .maxTimeMS(10)
333- // .out('collection')
334- // .project({ project: 1 })
335- // .redact({ redact: 1 })
336- // .skip(1)
337- // .sort({ sort: 1 })
338- // .batchSize(10)
339- // .unwind('name');
340- //
341- // // Execute the command with all steps defined
342- // // will fail
343- // const err = await cursor.toArray().catch(err => err);
344- // expect(err).to.be.instanceof(MongoServerError);
345- // });
346-
347318 it ( '#toArray()' , async function ( ) {
348319 const cursor = db . collection ( 't1' ) . aggregate ( ) ;
349320 cursor . match ( { a : 1 } ) ;
@@ -477,15 +448,6 @@ describe('CRUD API', function () {
477448 } ) ;
478449
479450 describe ( 'should correctly execute update methods using crud api' , function ( ) {
480- // TODO(NODE-7219): Remove test. There is no `update` method anymore
481- // it('legacy update', async function () {
482- // const db = client.db();
483- // const r = await db
484- // .collection('t3_1')
485- // .update({ a: 1 }, { $set: { a: 2 } }, { upsert: true });
486- // expect(r).property('upsertedCount').to.equal(1);
487- // });
488-
489451 it ( '#updateOne()' , async function ( ) {
490452 const db = client . db ( ) ;
491453 const i = await db . collection ( 't3_2' ) . insertMany ( [ { c : 1 } ] , { writeConcern : { w : 1 } } ) ;
@@ -805,25 +767,6 @@ describe('CRUD API', function () {
805767 test . ok ( r != null ) ;
806768 } ) ;
807769
808- // TODO(NODE-7219): Remove test as it duplicates the one from the above
809- // it('should correctly execute crud operations using w:0', {
810- // metadata: {
811- // requires: { topology: ['single', 'replicaset', 'sharded'] }
812- // },
813- //
814- // test: async function () {
815- // const db = client.db();
816- //
817- // const collection = db.collection<{ _id: number }>('w0crudoperations');
818- // const r = await collection.updateOne(
819- // { _id: 1 },
820- // { $set: { x: 1 } },
821- // { upsert: true, writeConcern: { w: 0 } }
822- // );
823- // test.ok(r != null);
824- // }
825- // });
826-
827770 describe ( 'when performing a multi-batch unordered bulk write that has a duplicate key' , function ( ) {
828771 it ( 'throws a MongoBulkWriteError indicating the duplicate key document failed' , async function ( ) {
829772 const ops = [ ] ;
0 commit comments