UNPKG

fastify

Version:

Fast and low overhead web framework, for Node.js

14 lines (10 loc) 271 B
'use strict' const { test } = require('node:test') const Fastify = require('..') test('listen should accept null port', async t => { const fastify = Fastify() t.after(() => fastify.close()) await t.assert.doesNotReject( fastify.listen({ port: null }) ) })