Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/nodejs/undici
/ errorWithDefaultMessage
Function
errorWithDefaultMessage
test/errors.js:37–37 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
35
const
SAMPLE_MESSAGE =
'sample message'
36
37
const
errorWithDefaultMessage = () =>
new
scenario.ErrorClass()
38
const
errorWithProvidedMessage = () =>
new
scenario.ErrorClass(SAMPLE_MESSAGE)
39
40
test(
'should use default message'
, t => {
Callers
1
errors.js
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected