1
1
import { expect } from 'chai' ;
2
- import { MongoCrypt , MongoCryptContext , MongoCryptContextCtor } from '../../src/index.mjs'
2
+ import { MongoCrypt , MongoCryptContext , MongoCryptContextCtor } from '../../src/index.mjs' ;
3
3
import { serialize , Binary , Long } from 'bson' ;
4
4
import * as crypto from 'crypto' ;
5
5
@@ -19,15 +19,15 @@ describe('MongoCryptConstructor', () => {
19
19
const mc = new MongoCrypt ( {
20
20
kmsProviders : serialize ( { aws : { } } ) ,
21
21
cryptoCallbacks : {
22
- aes256CbcEncryptHook : ( ) => { } ,
23
- aes256CbcDecryptHook : ( ) => { } ,
24
- aes256CtrEncryptHook : ( ) => { } ,
25
- aes256CtrDecryptHook : ( ) => { } ,
22
+ aes256CbcEncryptHook : ( ) => { } ,
23
+ aes256CbcDecryptHook : ( ) => { } ,
24
+ aes256CtrEncryptHook : ( ) => { } ,
25
+ aes256CtrDecryptHook : ( ) => { } ,
26
26
randomHook,
27
- hmacSha512Hook : ( ) => { } ,
28
- hmacSha256Hook : ( ) => { } ,
29
- sha256Hook : ( ) => { } ,
30
- signRsaSha256Hook : ( ) => { }
27
+ hmacSha512Hook : ( ) => { } ,
28
+ hmacSha256Hook : ( ) => { } ,
29
+ sha256Hook : ( ) => { } ,
30
+ signRsaSha256Hook : ( ) => { }
31
31
}
32
32
} ) ;
33
33
@@ -41,17 +41,17 @@ describe('MongoCryptConstructor', () => {
41
41
kmsProviders : serialize ( { aws : { } } ) ,
42
42
schemaMap : serialize ( { } ) ,
43
43
encryptedFieldsMap : serialize ( { } ) ,
44
- logger : ( ) => { } ,
44
+ logger : ( ) => { } ,
45
45
cryptoCallbacks : {
46
- aes256CbcEncryptHook : ( ) => { } ,
47
- aes256CbcDecryptHook : ( ) => { } ,
48
- aes256CtrEncryptHook : ( ) => { } ,
49
- aes256CtrDecryptHook : ( ) => { } ,
46
+ aes256CbcEncryptHook : ( ) => { } ,
47
+ aes256CbcDecryptHook : ( ) => { } ,
48
+ aes256CtrEncryptHook : ( ) => { } ,
49
+ aes256CtrDecryptHook : ( ) => { } ,
50
50
randomHook,
51
- hmacSha512Hook : ( ) => { } ,
52
- hmacSha256Hook : ( ) => { } ,
53
- sha256Hook : ( ) => { } ,
54
- signRsaSha256Hook : ( ) => { }
51
+ hmacSha512Hook : ( ) => { } ,
52
+ hmacSha256Hook : ( ) => { } ,
53
+ sha256Hook : ( ) => { } ,
54
+ signRsaSha256Hook : ( ) => { }
55
55
} ,
56
56
57
57
bypassQueryAnalysis : false
0 commit comments