Skip to content

Commit b6b4531

Browse files
fix lint
1 parent 0712486 commit b6b4531

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

src/client-side-encryption/auto_encrypter.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {
2-
MongoCryptContext,
32
type MongoCrypt,
43
type MongoCryptConstructor,
4+
type MongoCryptContext,
55
type MongoCryptOptions
66
} from 'mongodb-client-encryption';
77
import * as net from 'net';
@@ -404,15 +404,14 @@ export class AutoEncrypter {
404404
}
405405

406406
const commandBuffer = Buffer.isBuffer(cmd) ? cmd : serialize(cmd, options);
407-
let context: MongoCryptContext
407+
let context: MongoCryptContext;
408408
try {
409409
context = this._mongocrypt.makeEncryptionContext(
410410
MongoDBCollectionNamespace.fromString(ns).db,
411411
commandBuffer
412412
);
413-
414413
} catch (error) {
415-
throw new MongoError('something went wrong', { cause: error })
414+
throw new MongoError('something went wrong', { cause: error });
416415
}
417416

418417
context.id = this._contextCounter++;

test/integration/client-side-encryption/client_side_encryption.spec.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ describe('Client Side Encryption (Legacy)', function () {
6262
});
6363
});
6464

65-
describe.only('Client Side Encryption (Unified)', function () {
65+
describe('Client Side Encryption (Unified)', function () {
6666
runUnifiedSuite(
6767
loadSpecTests(path.join('client-side-encryption', 'tests', 'unified')),
6868
({ description }, configuration) => {

test/tools/unified-spec-runner/match.ts

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -461,14 +461,16 @@ function compareCommandStartedEvents(
461461
if (expected!.commandName) {
462462
expect(
463463
expected!.commandName,
464-
`expected ${prefix}.commandName to equal ${expected!.commandName} but received ${actual.commandName
464+
`expected ${prefix}.commandName to equal ${expected!.commandName} but received ${
465+
actual.commandName
465466
}`
466467
).to.equal(actual.commandName);
467468
}
468469
if (expected!.databaseName) {
469470
expect(
470471
expected!.databaseName,
471-
`expected ${prefix}.databaseName to equal ${expected!.databaseName} but received ${actual.databaseName
472+
`expected ${prefix}.databaseName to equal ${expected!.databaseName} but received ${
473+
actual.databaseName
472474
}`
473475
).to.equal(actual.databaseName);
474476
}
@@ -486,7 +488,8 @@ function compareCommandSucceededEvents(
486488
if (expected!.commandName) {
487489
expect(
488490
expected!.commandName,
489-
`expected ${prefix}.commandName to equal ${expected!.commandName} but received ${actual.commandName
491+
`expected ${prefix}.commandName to equal ${expected!.commandName} but received ${
492+
actual.commandName
490493
}`
491494
).to.equal(actual.commandName);
492495
}
@@ -501,7 +504,8 @@ function compareCommandFailedEvents(
501504
if (expected!.commandName) {
502505
expect(
503506
expected!.commandName,
504-
`expected ${prefix}.commandName to equal ${expected!.commandName} but received ${actual.commandName
507+
`expected ${prefix}.commandName to equal ${expected!.commandName} but received ${
508+
actual.commandName
505509
}`
506510
).to.equal(actual.commandName);
507511
}
@@ -775,7 +779,7 @@ export function expectErrorCheck(
775779
// TODO(NODE-6281): do not throw MongoServerErrors from bulk write if the error is a client-side error
776780
expect(error.errorResponse).not.to.be.instanceOf(MongoServerError);
777781
} else if (inspect(error, { depth: Infinity }).includes(`StateMachine.markCommand`)) {
778-
// mongocryptd marking commands results in MongoServerErrors because we communicate with a mongocryptd using a
782+
// mongocryptd marking commands results in MongoServerErrors because we communicate with a mongocryptd using a
779783
// MongoClient. These are technically considered client errors though.
780784
expect(error).to.be.instanceOf(MongoServerError);
781785
} else {

0 commit comments

Comments
 (0)