Skip to content

Commit df5baf4

Browse files
lint
1 parent 34e0b0b commit df5baf4

File tree

3 files changed

+23
-23
lines changed

3 files changed

+23
-23
lines changed

src/index.mts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ type MongoCryptConstructorOptions = {
7676
};
7777

7878
export interface MongoCryptConstructor {
79-
new(options: MongoCryptConstructorOptions): MongoCrypt;
79+
new (options: MongoCryptConstructorOptions): MongoCrypt;
8080
libmongocryptVersion: string;
8181
}
8282

@@ -138,6 +138,6 @@ export const MongoCrypt: MongoCryptConstructor = class MongoCrypt extends mc.Mon
138138

139139
/** exported for testing only. */
140140
interface MongoCryptContextCtor {
141-
new(): MongoCryptContext;
141+
new (): MongoCryptContext;
142142
}
143143
export const MongoCryptContextCtor: MongoCryptContextCtor = mc.MongoCryptContextCtor;

test/tools/chai-addons.mts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import * as chai from 'chai';
22
import sinonChai from 'sinon-chai';
3-
import * as chaiSubset from 'chai-subset';
3+
import chaiSubset from 'chai-subset';
44

55
chai.use(sinonChai);
6-
// @ts-expect-error
7-
chai.use(chaiSubset.default);
6+
7+
chai.use(chaiSubset);
88

99
chai.config.truncateThreshold = 0;

test/unit/bindings.test.mts

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { expect } from 'chai';
2-
import { MongoCrypt, MongoCryptContext, MongoCryptContextCtor } from '../../src/index.mjs'
2+
import { MongoCrypt, MongoCryptContext, MongoCryptContextCtor } from '../../src/index.mjs';
33
import { serialize, Binary, Long } from 'bson';
44
import * as crypto from 'crypto';
55

@@ -19,15 +19,15 @@ describe('MongoCryptConstructor', () => {
1919
const mc = new MongoCrypt({
2020
kmsProviders: serialize({ aws: {} }),
2121
cryptoCallbacks: {
22-
aes256CbcEncryptHook: () => { },
23-
aes256CbcDecryptHook: () => { },
24-
aes256CtrEncryptHook: () => { },
25-
aes256CtrDecryptHook: () => { },
22+
aes256CbcEncryptHook: () => {},
23+
aes256CbcDecryptHook: () => {},
24+
aes256CtrEncryptHook: () => {},
25+
aes256CtrDecryptHook: () => {},
2626
randomHook,
27-
hmacSha512Hook: () => { },
28-
hmacSha256Hook: () => { },
29-
sha256Hook: () => { },
30-
signRsaSha256Hook: () => { }
27+
hmacSha512Hook: () => {},
28+
hmacSha256Hook: () => {},
29+
sha256Hook: () => {},
30+
signRsaSha256Hook: () => {}
3131
}
3232
});
3333

@@ -41,17 +41,17 @@ describe('MongoCryptConstructor', () => {
4141
kmsProviders: serialize({ aws: {} }),
4242
schemaMap: serialize({}),
4343
encryptedFieldsMap: serialize({}),
44-
logger: () => { },
44+
logger: () => {},
4545
cryptoCallbacks: {
46-
aes256CbcEncryptHook: () => { },
47-
aes256CbcDecryptHook: () => { },
48-
aes256CtrEncryptHook: () => { },
49-
aes256CtrDecryptHook: () => { },
46+
aes256CbcEncryptHook: () => {},
47+
aes256CbcDecryptHook: () => {},
48+
aes256CtrEncryptHook: () => {},
49+
aes256CtrDecryptHook: () => {},
5050
randomHook,
51-
hmacSha512Hook: () => { },
52-
hmacSha256Hook: () => { },
53-
sha256Hook: () => { },
54-
signRsaSha256Hook: () => { }
51+
hmacSha512Hook: () => {},
52+
hmacSha256Hook: () => {},
53+
sha256Hook: () => {},
54+
signRsaSha256Hook: () => {}
5555
},
5656

5757
bypassQueryAnalysis: false

0 commit comments

Comments
 (0)