test: add tests for ERR_HTTP2_FRAME_ERROR

PR-URL: https://github.com/nodejs/node/pull/16107
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
This commit is contained in:
Ruxandra Fediuc 2017-10-09 10:39:53 -07:00 committed by Joyee Cheung
parent 5aaa23eedd
commit e30876121a

View File

@ -297,6 +297,14 @@ assert.strictEqual(
errors.message('ERR_HTTP2_HEADER_REQUIRED', ['test']),
'The test header is required');
// Test ERR_HTTP2_FRAME_ERROR
assert.strictEqual(
errors.message('ERR_HTTP2_FRAME_ERROR', ['foo', 'bar', 'baz']),
'Error sending frame type foo for stream baz with code bar');
assert.strictEqual(
errors.message('ERR_HTTP2_FRAME_ERROR', ['foo', 'bar']),
'Error sending frame type foo with code bar');
// Test error messages for async_hooks
assert.strictEqual(
errors.message('ERR_ASYNC_CALLBACK', ['init']),