Skip to content

Commit 11f2095

Browse files
committed
test: ensure proper error properties in tests
1 parent 8e43f11 commit 11f2095

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/integration/client-side-encryption/client_side_encryption.prose.10.kms_tls.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ describe('10. KMS TLS Tests', function () {
4747
error => error
4848
);
4949

50+
expect(error).to.exist;
51+
expect(error, error.stack).to.have.property('cause').that.is.instanceOf(Error);
5052
expect(error.cause.message, error.stack).to.include('certificate has expired');
5153
});
5254

@@ -58,6 +60,8 @@ describe('10. KMS TLS Tests', function () {
5860
error => error
5961
);
6062

63+
expect(error).to.exist;
64+
expect(error, error.stack).to.have.property('cause').that.is.instanceOf(Error);
6165
expect(error.cause.message, error.stack).to.include('does not match certificate');
6266
});
6367
});

0 commit comments

Comments
 (0)