MCPcopy Create free account
hub / github.com/fastify/fastify / onWarning

Function onWarning

test/schema-feature.test.js:326–329  ·  view source on GitHub ↗
(warning)

Source from the content-addressed store, hash-verified

324
325 process.on('warning', onWarning)
326 function onWarning (warning) {
327 t.assert.strictEqual(warning.name, 'FastifyWarning')
328 t.assert.strictEqual(warning.code, FSTWRN001.code)
329 }
330
331 t.after(() => {
332 process.removeListener('warning', onWarning)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected