File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -2,19 +2,23 @@ import { expect } from 'chai';
2
2
import * as bindings from '../src/index' ;
3
3
4
4
describe ( 'index.ts' , ( ) => {
5
- it ( 'only has one export ' , ( ) => {
6
- expect ( Object . keys ( bindings ) . length ) . to . equal ( 2 ) ;
5
+ it ( 'only has three exports ' , ( ) => {
6
+ expect ( Object . keys ( bindings ) . length ) . to . equal ( 3 ) ;
7
7
} ) ;
8
8
9
9
it ( 'exports a class MongoCrypt' , ( ) => {
10
- expect ( bindings ) . to . have . property ( 'MongoCrypt' ) ;
10
+ expect ( bindings ) . to . have . property ( 'MongoCrypt' ) . that . is . a ( 'function' ) ;
11
11
} ) ;
12
12
13
13
it ( 'exposes MongoCryptContextCtor' , ( ) => {
14
- expect ( bindings ) . to . have . property ( 'MongoCryptContextCtor' ) ;
14
+ expect ( bindings ) . to . have . property ( 'MongoCryptContextCtor' ) . that . is . a ( 'function' ) ;
15
15
} ) ;
16
16
17
17
it ( 'exposes MongoCryptKMSRequestCtor' , ( ) => {
18
- expect ( bindings ) . not . to . have . property ( 'MongoCryptKMSRequestCtor' ) ;
18
+ expect ( bindings ) . not . to . have . property ( 'MongoCryptKMSRequestCtor' ) . that . is . a ( 'function' ) ;
19
+ } ) ;
20
+
21
+ it ( 'exports a cryptoCallbacks object' , ( ) => {
22
+ expect ( bindings ) . to . have . property ( 'cryptoCallbacks' ) . that . is . an ( 'object' ) ;
19
23
} ) ;
20
24
} ) ;
You can’t perform that action at this time.
0 commit comments