We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
test/integration/crud/promise_stats
1 parent ff229fa commit 8a67346Copy full SHA for 8a67346
test/integration/crud/promise_stats.test.js
test/integration/crud/stats.test.ts
@@ -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