Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 8a67346

Browse files
PavelSafronovbaileympearson
andauthored
test(NODE-7190): Migrate test/integration/crud/promise_stats tests (#4708)
Co-authored-by: bailey <bailey.pearson@mongodb.com>
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.

‎test/integration/crud/stats.test.ts‎

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)

AltStyle によって変換されたページ (->オリジナル) /