Skip to content

Commit 823a726

Browse files
committed
test: add type annotations
1 parent b03193c commit 823a726

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

test/integration/client-side-encryption/client_side_encryption.prose.14.decrytion_events.test.ts

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
import { expect } from 'chai';
22

3-
import { Binary, BSON, MongoNetworkError } from '../../mongodb';
3+
import {
4+
Binary,
5+
BSON,
6+
CommandFailedEvent,
7+
CommandSucceededEvent,
8+
MongoClient,
9+
MongoNetworkError
10+
} from '../../mongodb';
411
import { installNodeDNSWorkaroundHooks } from '../../tools/runner/hooks/configuration';
512
import { getEncryptExtraOptions } from '../../tools/utils';
613

@@ -20,14 +27,14 @@ const LOCAL_KEY = Buffer.from(
2027
describe('14. Decryption Events', metadata, function () {
2128
installNodeDNSWorkaroundHooks();
2229

23-
let setupClient;
30+
let setupClient: MongoClient;
2431
let clientEncryption;
25-
let keyId;
26-
let cipherText;
27-
let malformedCiphertext;
28-
let encryptedClient;
29-
let aggregateSucceeded;
30-
let aggregateFailed;
32+
let keyId: Binary;
33+
let cipherText: Binary;
34+
let malformedCiphertext: Binary;
35+
let encryptedClient: MongoClient;
36+
let aggregateSucceeded: CommandSucceededEvent | undefined;
37+
let aggregateFailed: CommandFailedEvent | undefined;
3138

3239
beforeEach(async function () {
3340
const mongodbClientEncryption = this.configuration.mongodbClientEncryption;

0 commit comments

Comments
 (0)