Skip to content

Commit 354d982

Browse files
committed
fix: exports test
1 parent 9b910d4 commit 354d982

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

test/index.test.ts

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,23 @@ import { expect } from 'chai';
22
import * as bindings from '../src/index';
33

44
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);
77
});
88

99
it('exports a class MongoCrypt', () => {
10-
expect(bindings).to.have.property('MongoCrypt');
10+
expect(bindings).to.have.property('MongoCrypt').that.is.a('function');
1111
});
1212

1313
it('exposes MongoCryptContextCtor', () => {
14-
expect(bindings).to.have.property('MongoCryptContextCtor');
14+
expect(bindings).to.have.property('MongoCryptContextCtor').that.is.a('function');
1515
});
1616

1717
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');
1923
});
2024
});

0 commit comments

Comments
 (0)