UNPKG

fastify

Version:

Fast and low overhead web framework, for Node.js

21 lines (17 loc) 368 B
'use strict' const { test } = require('tap') const Fastify = require('..') test('Should export withTypeProvider function', t => { t.plan(1) try { Fastify().withTypeProvider() t.pass() } catch (e) { t.fail() } }) test('Should return same instance', t => { t.plan(1) const fastify = Fastify() t.equal(fastify, fastify.withTypeProvider()) })