MCPcopy 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
122function thenableRejects (t, promise, error) {
123 return t.assert.rejects(async () => { await promise }, error)
124}
125
126test('awaitable register error handling', async t => {
127 const fastify = Fastify()

Callers 1

register.test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected