Skip to content

Commit c39983d

Browse files
authored
test(NODE-7203): migrate integration/bson-options tests (#4733)
1 parent 1b17caf commit c39983d

File tree

7 files changed

+508
-767
lines changed

7 files changed

+508
-767
lines changed

test/integration/node-specific/bson-options/bsonRegExp.test.js renamed to test/integration/node-specific/bson-options/bsonRegExp.test.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
'use strict';
1+
import { expect } from 'chai';
22

3-
const { expect } = require('chai');
4-
const { BSONRegExp } = require('../../../mongodb');
3+
import { BSONRegExp, type MongoClient } from '../../../../src';
54

65
describe('BSONRegExp', () => {
76
describe('bsonRegExp option', () => {
87
// define client and option for tests to use
9-
let client;
8+
let client: MongoClient;
109
const option = { bsonRegExp: true };
1110
for (const passOptionTo of ['client', 'db', 'collection', 'operation']) {
1211
it(`should respond with BSONRegExp class with option passed to ${passOptionTo}`, async function () {

test/integration/node-specific/bson-options/ignore_undefined.test.js

Lines changed: 0 additions & 371 deletions
This file was deleted.

0 commit comments

Comments
 (0)