Skip to content

Commit f163e44

Browse files
fix failing oid test
1 parent fdf1499 commit f163e44

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/integration/objectid.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ describe('ObjectId', function () {
7676
date.setMilliseconds(0);
7777

7878
const epochSeconds = date.getTime() / 1000;
79-
const oid = new ObjectId(epochSeconds);
79+
const oid = ObjectId.createFromTime(epochSeconds);
8080
const time = oid.getTimestamp();
8181

8282
expect(time).to.deep.equal(date);

0 commit comments

Comments
 (0)