summaryrefslogtreecommitdiff
path: root/test/parallel/test-tls-no-cert-required.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-tls-no-cert-required.js')
-rw-r--r--test/parallel/test-tls-no-cert-required.js15
1 files changed, 8 insertions, 7 deletions
diff --git a/test/parallel/test-tls-no-cert-required.js b/test/parallel/test-tls-no-cert-required.js
index ef1d366c91..ed24863a2a 100644
--- a/test/parallel/test-tls-no-cert-required.js
+++ b/test/parallel/test-tls-no-cert-required.js
@@ -39,13 +39,14 @@ tls.createServer(assert.fail)
tls.createServer({})
.listen(0, common.mustCall(close));
-common.expectsError(() => tls.createServer('this is not valid'),
- {
- code: 'ERR_INVALID_ARG_TYPE',
- type: TypeError,
- message: 'The "options" argument must be of type ' +
- 'Object. Received type string'
- }
+common.expectsError(
+ () => tls.createServer('this is not valid'),
+ {
+ code: 'ERR_INVALID_ARG_TYPE',
+ type: TypeError,
+ message: 'The "options" argument must be of type object. ' +
+ "Received type string ('this is not valid')"
+ }
);
tls.createServer()