UNPKG

fastify-cli

Version:

Run a fastify route with one command!

14 lines (8 loc) 242 B
const { test } = require('tap') test('should register the correct decorator', async t => { t.plan(1) const app = require('fastify')() app.register(require('..')) await app.ready() t.same(app.exampleDecorator(), 'decorated') })