Skip to content

Commit 12d8aa7

Browse files
committed
test(NODE-5484): remove duplicate describe block
1 parent 2a58338 commit 12d8aa7

File tree

1 file changed

+26
-28
lines changed

1 file changed

+26
-28
lines changed

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

Lines changed: 26 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -10,34 +10,32 @@ import {
1010
} from '../../../src/client-side-encryption/errors';
1111
import { MongoError } from '../../mongodb';
1212

13-
describe('ClientEncryption', function () {
14-
describe('Errors', function () {
15-
const errors = [
16-
new MongoCryptAzureKMSRequestError(''),
17-
new MongoCryptCreateDataKeyError(
18-
{
19-
encryptedFields: {}
20-
},
21-
{
22-
cause: new Error()
23-
}
24-
),
25-
new MongoCryptCreateEncryptedCollectionError(
26-
{
27-
encryptedFields: {}
28-
},
29-
{ cause: new Error() }
30-
),
31-
new MongoCryptError(''),
32-
new MongoCryptInvalidArgumentError('')
33-
];
13+
describe('MongoCryptError', function () {
14+
const errors = [
15+
new MongoCryptAzureKMSRequestError(''),
16+
new MongoCryptCreateDataKeyError(
17+
{
18+
encryptedFields: {}
19+
},
20+
{
21+
cause: new Error()
22+
}
23+
),
24+
new MongoCryptCreateEncryptedCollectionError(
25+
{
26+
encryptedFields: {}
27+
},
28+
{ cause: new Error() }
29+
),
30+
new MongoCryptError(''),
31+
new MongoCryptInvalidArgumentError('')
32+
];
3433

35-
for (const err of errors) {
36-
describe(err.name, function () {
37-
it('is subclass of MongoError', function () {
38-
expect(err).to.be.instanceOf(MongoError);
39-
});
34+
for (const err of errors) {
35+
describe(err.name, function () {
36+
it('is subclass of MongoError', function () {
37+
expect(err).to.be.instanceOf(MongoError);
4038
});
41-
}
42-
});
39+
});
40+
}
4341
});

0 commit comments

Comments
 (0)