diff --git a/test/parallel/test-internal-errors.js b/test/parallel/test-internal-errors.js index 39689a37ec..93757ae66c 100644 --- a/test/parallel/test-internal-errors.js +++ b/test/parallel/test-internal-errors.js @@ -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']),