UNPKG

@fastify/reply-from

Version:

forward your HTTP request to another server, for fastify

14 lines (10 loc) 357 B
'use strict' const { test } = require('node:test') const Fastify = require('fastify') const From = require('../index') test('http2 invalid base', async (t) => { const instance = Fastify() await t.assert.rejects(async () => instance.register(From, { http2: { requestTimeout: 100 } }), new Error('Option base is required when http2 is true')) })