Skip to content

Commit fcd325c

Browse files
lint
1 parent 4edeb45 commit fcd325c

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

test/integration/node-specific/client_encryption.test.ts

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -484,20 +484,24 @@ describe('ClientEncryption integration tests', function () {
484484
describe('errors', function () {
485485
for (const val of [42, 'hello', { keyAltNames: 'foobar' }, /foobar/]) {
486486
it(`should fail if typeof keyAltNames = ${typeof val}`, metadata, async function () {
487-
const error = await clientEncryption.createDataKey('local', {
488-
// @ts-expect-error Invalid type tests
489-
keyAltNames: val
490-
}).catch(error => error);
487+
const error = await clientEncryption
488+
.createDataKey('local', {
489+
// @ts-expect-error Invalid type tests
490+
keyAltNames: val
491+
})
492+
.catch(error => error);
491493
expect(error).to.be.instanceOf(MongoCryptInvalidArgumentError);
492494
});
493495
}
494496

495497
for (const val of [undefined, null, 42, { keyAltNames: 'foobar' }, ['foobar'], /foobar/]) {
496498
it(`should fail if typeof keyAltNames[x] = ${typeof val}`, metadata, async function () {
497-
const error = await clientEncryption.createDataKey('local', {
498-
// @ts-expect-error Invalid type tests
499-
keyAltNames: [val]
500-
}).catch(error => error);
499+
const error = await clientEncryption
500+
.createDataKey('local', {
501+
// @ts-expect-error Invalid type tests
502+
keyAltNames: [val]
503+
})
504+
.catch(error => error);
501505
expect(error).to.be.instanceOf(MongoCryptInvalidArgumentError);
502506
});
503507
}
@@ -514,12 +518,9 @@ describe('ClientEncryption integration tests', function () {
514518
});
515519

516520
it('should create a key with multiple keyAltNames', metadata, async function () {
517-
const dataKey = await clientEncryption.createDataKey(
518-
'local',
519-
{
520-
keyAltNames: ['foobar', 'fizzbuzz']
521-
}
522-
);
521+
const dataKey = await clientEncryption.createDataKey('local', {
522+
keyAltNames: ['foobar', 'fizzbuzz']
523+
});
523524
const docs = await Promise.all([
524525
collection.findOne({ keyAltNames: 'foobar' }),
525526
collection.findOne({ keyAltNames: 'fizzbuzz' })

0 commit comments

Comments
 (0)