Skip to content

Commit 88b54e3

Browse files
committed
fix: js files should not be using import
1 parent 84151b4 commit 88b54e3

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

test/unit/assorted/write_concern.test.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22
const mock = require('../../tools/mongodb-mock/index');
33
const { expect } = require('chai');
44

5-
import { ObjectId } from 'bson';
6-
7-
import { LEGACY_HELLO_COMMAND } from '../../../src/constants';
8-
import { MongoClient } from '../../../src/mongo_client';
9-
import { isHello } from '../../../src/utils';
5+
const { isHello } = require('../../../src/utils');
6+
const { LEGACY_HELLO_COMMAND } = require('../../../src/constants');
7+
const { MongoClient } = require('../../../src/mongo_client');
8+
const { ObjectId } = require('bson');
109

1110
const TEST_OPTIONS = { writeConcern: { w: 2, wtimeoutMS: 1000 } };
1211

0 commit comments

Comments
 (0)