summaryrefslogtreecommitdiff
path: root/test/parallel/test-http2-ping.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-http2-ping.js')
-rw-r--r--test/parallel/test-http2-ping.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/parallel/test-http2-ping.js b/test/parallel/test-http2-ping.js
index 0280f656d0..87c8c29d1b 100644
--- a/test/parallel/test-http2-ping.js
+++ b/test/parallel/test-http2-ping.js
@@ -81,14 +81,14 @@ server.listen(0, common.mustCall(() => {
// should throw if payload is not of type ArrayBufferView
{
- [1, true, {}, []].forEach((invalidPayload) =>
+ [1, true, {}, []].forEach((payload) =>
common.expectsError(
- () => client.ping(invalidPayload),
+ () => client.ping(payload),
{
type: TypeError,
code: 'ERR_INVALID_ARG_TYPE',
- message: 'The "payload" argument must be one of type' +
- ' Buffer, TypedArray, or DataView'
+ message: 'The "payload" argument must be one of type Buffer, ' +
+ `TypedArray, or DataView. Received type ${typeof payload}`
}
)
);