File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 1
1
import { expect } from 'chai' ;
2
- import { MongoCrypt , MongoCryptContextCtor } from '../src' ;
2
+ import { MongoCrypt , MongoCryptContext , MongoCryptContextCtor } from '../src' ;
3
3
import { serialize , Binary , Long } from 'bson' ;
4
4
import * as crypto from 'crypto' ;
5
5
@@ -405,9 +405,12 @@ describe('MongoCryptConstructor', () => {
405
405
} ) ;
406
406
407
407
describe ( 'MongoCryptContext' , ( ) => {
408
- const context = new MongoCrypt ( {
409
- kmsProviders : serialize ( { aws : { } } )
410
- } ) . makeDecryptionContext ( serialize ( { } ) ) ;
408
+ let context : MongoCryptContext ;
409
+ beforeEach ( ( ) => {
410
+ context = new MongoCrypt ( {
411
+ kmsProviders : serialize ( { aws : { } } )
412
+ } ) . makeDecryptionContext ( serialize ( { } ) ) ;
413
+ } )
411
414
412
415
for ( const property of [ 'status' , 'state' ] ) {
413
416
it ( `it has a property .${ property } ` , ( ) => {
@@ -442,4 +445,4 @@ describe('MongoCryptContext', () => {
442
445
) . not . to . throw ( ) ;
443
446
} ) ;
444
447
} ) ;
445
- } ) ;
448
+ } ) ;
You can’t perform that action at this time.
0 commit comments