Skip to content

Commit 5411440

Browse files
fix new crypto callback test
1 parent c40e901 commit 5411440

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/crypto.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ function createEncryptedDocument(mongoCrypt: MongoCrypt) {
3838

3939
const ctx = mongoCrypt.makeExplicitEncryptionContext(BSON.serialize({ v }), {
4040
keyId: keyId.buffer,
41-
algorithm
41+
algorithm,
42+
expressionMode: false
4243
});
4344

4445
const getState = () => ctx.state;
@@ -85,7 +86,7 @@ describe('Crypto hooks', () => {
8586

8687
const mongoCryptOptions: ConstructorParameters<MongoCryptConstructor>[0] = {
8788
kmsProviders: BSON.serialize(kmsProviders),
88-
cryptoCallbacks: spiedCallbacks
89+
cryptoCallbacks: spiedCallbacks,
8990
};
9091

9192
const mongoCrypt = new MongoCrypt(mongoCryptOptions);

0 commit comments

Comments
 (0)