summaryrefslogtreecommitdiff
path: root/test/parallel/test-http2-createserver-options.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-http2-createserver-options.js')
-rw-r--r--test/parallel/test-http2-createserver-options.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/parallel/test-http2-createserver-options.js b/test/parallel/test-http2-createserver-options.js
index 6f3d4b5693..8814e2db9e 100644
--- a/test/parallel/test-http2-createserver-options.js
+++ b/test/parallel/test-http2-createserver-options.js
@@ -15,8 +15,8 @@ invalidOptions.forEach((invalidOption) => {
{
name: 'TypeError',
code: 'ERR_INVALID_ARG_TYPE',
- message: 'The "options" argument must be of type Object. Received ' +
- `type ${typeof invalidOption}`
+ message: 'The "options" argument must be of type object.' +
+ common.invalidArgTypeHelper(invalidOption)
}
);
});
@@ -28,8 +28,8 @@ invalidOptions.forEach((invalidSettingsOption) => {
{
name: 'TypeError',
code: 'ERR_INVALID_ARG_TYPE',
- message: 'The "options.settings" property must be of type Object. ' +
- `Received type ${typeof invalidSettingsOption}`
+ message: 'The "options.settings" property must be of type object.' +
+ common.invalidArgTypeHelper(invalidSettingsOption)
}
);
});