Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/fastify/fastify
/ thenableRejects
Function
thenableRejects
test/register.test.js:122–124 ·
view source on GitHub ↗
(t, promise, error)
Source
from the content-addressed store, hash-verified
120
})
121
122
function
thenableRejects (t, promise, error) {
123
return
t.assert.rejects(
async
() => {
await
promise }, error)
124
}
125
126
test(
'awaitable register error handling'
,
async
t => {
127
const
fastify = Fastify()
Callers
1
register.test.js
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected