Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
http2: test for converting NghttpError to string
  • Loading branch information
rpgeeganage committed Apr 30, 2019
commit 9d7389dd5e5f99f085539f046501e2453b4e54a9
6 changes: 6 additions & 0 deletions test/parallel/test-http2-util-nghttp2error.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,9 @@ common.expectsError(() => {
type: NghttpError,
message: 'Invalid argument'
});

// Should convert the NghttpError object to string properly
{
const err = new NghttpError(401);
strictEqual(err.toString(), 'Error [ERR_HTTP2_ERROR]: Unknown error code');
Comment thread
rpgeeganage marked this conversation as resolved.
}