Skip to content

Commit 7d7055f

Browse files
committed
fix: lint
1 parent ffcc8d5 commit 7d7055f

File tree

4 files changed

+20
-22
lines changed

4 files changed

+20
-22
lines changed

test/integration/client-side-encryption/client_side_encryption.prose.21.automatic_data_encryption_keys.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ import { expect } from 'chai';
22

33
import { ClientEncryption } from '../../../src/client-side-encryption/client_encryption';
44
import { MongoCryptCreateEncryptedCollectionError } from '../../../src/client-side-encryption/errors';
5+
import { Collection } from '../../../src/collection';
6+
import { type Db } from '../../../src/db';
7+
import { MongoServerError } from '../../../src/error';
58
import {
69
getCSFLEKMSProviders,
710
kmsCredentialsPresent,
811
missingKeys
912
} from '../../csfle-kms-providers';
10-
import { Collection } from '../../../src/collection';
11-
import { MongoServerError } from '../../../src/error';
12-
import { Db } from '../../../src/db';
1313

1414
const metadata: MongoDBMetadataUI = {
1515
requires: {

test/unit/cmap/connect.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
21
import { type Document } from 'bson';
32
import { expect } from 'chai';
43

54
import { MongoCredentials } from '../../../src/cmap/auth/mongo_credentials';
65
import { connect, prepareHandshakeDocument } from '../../../src/cmap/connect';
7-
import { ConnectionOptions, type Connection } from '../../../src/cmap/connection';
6+
import { type Connection, type ConnectionOptions } from '../../../src/cmap/connection';
87
import {
98
addContainerMetadata,
109
type ClientMetadata
@@ -186,7 +185,6 @@ describe('Connect Tests', function () {
186185
expect(error).to.be.instanceOf(MongoNetworkError);
187186
});
188187

189-
190188
describe('prepareHandshakeDocument', () => {
191189
describe('client environment (containers and FAAS)', () => {
192190
const cachedEnv = process.env;

test/unit/collection.test.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,12 @@ describe('Collection', function () {
8181
});
8282
}
8383

84-
if (isHello(doc)) {
85-
request.reply(Object.assign({}, HELLO));
86-
} else if (doc.endSessions) {
87-
request.reply({ ok: 1 });
88-
}
89-
});
84+
if (isHello(doc)) {
85+
request.reply(Object.assign({}, HELLO));
86+
} else if (doc.endSessions) {
87+
request.reply({ ok: 1 });
88+
}
89+
});
9090

9191
await client.connect();
9292
const db = client.db('test');
@@ -120,12 +120,12 @@ describe('Collection', function () {
120120
});
121121
}
122122

123-
if (isHello(doc)) {
124-
request.reply(Object.assign({}, HELLO));
125-
} else if (doc.endSessions) {
126-
request.reply({ ok: 1 });
127-
}
128-
});
123+
if (isHello(doc)) {
124+
request.reply(Object.assign({}, HELLO));
125+
} else if (doc.endSessions) {
126+
request.reply({ ok: 1 });
127+
}
128+
});
129129

130130
await client.connect();
131131
const db = client.db('test');

test/unit/sdam/topology.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,10 @@ describe('Topology (unit)', function () {
115115
serverSelectionTimeoutMS: 0,
116116
socketTimeoutMS: 250
117117
});
118-
const server = await topology
119-
.selectServer('primary', {
120-
timeoutContext: ctx, operationName: 'none'
121-
});
118+
const server = await topology.selectServer('primary', {
119+
timeoutContext: ctx,
120+
operationName: 'none'
121+
});
122122
const err = await server
123123
.command(new RunCursorCommandOperation(ns('admin.$cmd'), { ping: 1 }, {}), ctx)
124124
.catch(e => e);

0 commit comments

Comments
 (0)