Skip to content

Commit dc132f4

Browse files
committed
chore: fix test
1 parent 18fa053 commit dc132f4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/unit/client-side-encryption/auto_encrypter.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
type AutoEncryptionOptions,
99
BSON,
1010
type DataKey,
11-
MongoClient,
11+
type MongoClient,
1212
MongocryptdManager,
1313
StateMachine
1414
} from '../../mongodb';
@@ -109,7 +109,9 @@ describe('AutoEncrypter', function () {
109109
const autoEncrypter = new AutoEncrypter(client, autoEncrypterOptions);
110110

111111
it('instantiates a mongo client on the auto encrypter', function () {
112-
expect(autoEncrypter).to.have.property('_mongocryptdClient').to.be.instanceOf(MongoClient);
112+
expect(autoEncrypter)
113+
.to.have.property('_mongocryptdClient')
114+
.to.have.nested.property('s.isMongoClient');
113115
});
114116

115117
it('sets serverSelectionTimeoutMS to 10000ms', function () {

0 commit comments

Comments
 (0)