Skip to content

Commit 23921f9

Browse files
committed
test: assert deprecation on ObjectID
1 parent d1201ea commit 23921f9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/types/mongodb.test-d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import type { FindCursor } from '../../src/cursor/find_cursor';
66
import type { Document } from 'bson';
77
import { Db } from '../../src';
88
import { Topology } from '../../src/sdam/topology';
9-
import { ObjectId } from '../../src';
9+
import * as MongoDBDriver from '../../src';
1010

1111
// We wish to keep these APIs but continue to ensure they are marked as deprecated.
1212
expectDeprecated(Collection.prototype.insert);
@@ -16,8 +16,8 @@ expectDeprecated(Collection.prototype.count);
1616
expectDeprecated(AggregationCursor.prototype.geoNear);
1717
expectDeprecated(Topology.prototype.unref);
1818
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);
2121

2222
// test mapped cursor types
2323
const client = new MongoClient('');

0 commit comments

Comments
 (0)