MCPcopy Index your code
hub / github.com/nodejs/node / expectsError

Function expectsError

test/parallel/test-http2-status-code-invalid.js:11–17  ·  view source on GitHub ↗
(code)

Source from the content-addressed store, hash-verified

9const server = http2.createServer();
10
11function expectsError(code) {
12 return common.expectsError({
13 code: 'ERR_HTTP2_STATUS_INVALID',
14 name: 'RangeError',
15 message: `Invalid status code: ${code}`
16 });
17}
18
19server.on('stream', common.mustCall((stream) => {
20

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…