@@ -31,65 +31,6 @@ describe('Promote Values', function () {
3131 await client . close ( ) ;
3232 } ) ;
3333
34- // TODO(NODE-7192): remove as it duplicates "should correctly honor promoteValues when creating an instance using Db"
35- // it('should correctly honor promoteValues when creating an instance using MongoClient', {
36- // // Add a tag that our runner can trigger on
37- // // in this case we are setting that node needs to be higher than 0.10.X to run
38- // metadata: {
39- // requires: { topology: ['single', 'replicaset', 'sharded', 'ssl', 'heap', 'wiredtiger'] }
40- // },
41- //
42- // test: async function () {
43- // const configuration = this.configuration;
44- // const client = configuration.newClient({}, { promoteValues: false });
45- // await client.connect();
46- // const db = client.db(configuration.db);
47- //
48- // await db.collection('shouldCorrectlyHonorPromoteValues').insertOne({
49- // doc: Long.fromNumber(10),
50- // int: 10,
51- // double: 2.2222,
52- // array: [[Long.fromNumber(10)]]
53- // });
54- //
55- // const doc = await db.collection('shouldCorrectlyHonorPromoteValues').findOne();
56- // expect(Long.fromNumber(10)).deep.equals(doc.doc);
57- // expect(new Int32(10)).deep.equals(doc.int);
58- // expect(new Double(2.2222)).deep.equals(doc.double);
59- //
60- // await client.close();
61- // }
62- // });
63-
64- // TODO(NODE-7192): remove as it duplicates "should correctly honor promoteValues when creating an instance using Db"
65- // it('should correctly honor promoteValues at cursor level', {
66- // // Add a tag that our runner can trigger on
67- // // in this case we are setting that node needs to be higher than 0.10.X to run
68- // metadata: {
69- // requires: { topology: ['single', 'replicaset', 'sharded', 'ssl', 'heap', 'wiredtiger'] }
70- // },
71- //
72- // test: async function () {
73- // const configuration = this.configuration;
74- // const client = configuration.newClient({}, { promoteValues: false });
75- // await client.connect();
76- // const db = client.db(configuration.db);
77- // await db.collection('shouldCorrectlyHonorPromoteValues').insertOne({
78- // doc: Long.fromNumber(10),
79- // int: 10,
80- // double: 2.2222,
81- // array: [[Long.fromNumber(10)]]
82- // });
83- //
84- // const doc = await db.collection('shouldCorrectlyHonorPromoteValues').find().next();
85- // expect(doc.doc).to.deep.equal(Long.fromNumber(10));
86- // expect(doc.int).to.deep.equal(new Int32(10));
87- // expect(doc.double).to.deep.equal(new Double(2.2222));
88- //
89- // await client.close();
90- // }
91- // });
92-
9334 it ( 'should correctly honor promoteValues at cursor find level' , async function ( ) {
9435 const configuration = this . configuration ;
9536 const client = configuration . newClient ( ) ;
0 commit comments