Skip to content

Commit 8a67346

Browse files
test(NODE-7190): Migrate test/integration/crud/promise_stats tests (#4708)
Co-authored-by: bailey <[email protected]>
1 parent ff229fa commit 8a67346

File tree

2 files changed

+21
-39
lines changed

2 files changed

+21
-39
lines changed

test/integration/crud/promise_stats.test.js

Lines changed: 0 additions & 39 deletions
This file was deleted.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import { expect } from 'chai';
2+
3+
import { type MongoClient } from '../../../src';
4+
5+
describe('stats', function () {
6+
let client: MongoClient;
7+
8+
beforeEach(async function () {
9+
client = this.configuration.newClient();
10+
await client.connect();
11+
});
12+
13+
afterEach(async function () {
14+
await client.close();
15+
});
16+
17+
it('correctly executes stats()', async function () {
18+
const stats = await client.db('foo').stats();
19+
expect(stats).not.to.be.null;
20+
});
21+
});

0 commit comments

Comments
 (0)