|
1 | | -'use strict'; |
2 | | - |
3 | | -const{ Double }=require('bson'); |
4 | | -conststream=require('stream'); |
5 | | -constfs=require('fs'); |
6 | | -const { expect } =require('chai'); |
7 | | -const { promisify } =require('node:util'); |
8 | | -const{ once }=require('node:events'); |
9 | | -const { GridFSBucket, ObjectId, MongoAPIError}=require('../../mongodb'); |
10 | | - |
11 | | -describe('GridFS Stream', function () { |
12 | | - let client; |
13 | | - let db; |
| 1 | +import{once}from'node:events'; |
| 2 | +import*asfsfrom'node:fs'; |
| 3 | +import*asstreamfrom'node:stream'; |
| 4 | +import{promisify}from'node:util'; |
| 5 | + |
| 6 | +import { Double } from'bson'; |
| 7 | +import { expect } from'chai'; |
| 8 | + |
| 9 | +import { typeDb,GridFSBucket, MongoAPIError,typeMongoClient,ObjectId}from'../../mongodb'; |
| 10 | + |
| 11 | +describe.only('GridFS Stream', function () { |
| 12 | + let client: MongoClient; |
| 13 | + let db: Db; |
14 | 14 |
|
15 | 15 | beforeEach(async function () {
|
16 | 16 | client = this.configuration.newClient();
|
|
0 commit comments