File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import type { FindCursor } from '../../src/cursor/find_cursor';
6
6
import type { Document } from 'bson' ;
7
7
import { Db } from '../../src' ;
8
8
import { Topology } from '../../src/sdam/topology' ;
9
- import { ObjectId } from '../../src' ;
9
+ import * as MongoDBDriver from '../../src' ;
10
10
11
11
// We wish to keep these APIs but continue to ensure they are marked as deprecated.
12
12
expectDeprecated ( Collection . prototype . insert ) ;
@@ -16,8 +16,8 @@ expectDeprecated(Collection.prototype.count);
16
16
expectDeprecated ( AggregationCursor . prototype . geoNear ) ;
17
17
expectDeprecated ( Topology . prototype . unref ) ;
18
18
expectDeprecated ( Db . prototype . unref ) ;
19
- // expectDeprecated(ObjectID); // not sure why tsd can't assert the deprecation
20
- expectNotDeprecated ( ObjectId ) ;
19
+ expectDeprecated ( MongoDBDriver . ObjectID ) ;
20
+ expectNotDeprecated ( MongoDBDriver . ObjectId ) ;
21
21
22
22
// test mapped cursor types
23
23
const client = new MongoClient ( '' ) ;
You can’t perform that action at this time.
0 commit comments