UNPKG

kequapp

Version:

DEPRECATED: renamed to @kequtech/arbor

11 lines (10 loc) 423 B
import { createBundle } from "../router/create-bundle.js"; import { FakeReq, FakeRes } from "../utils/fake-http.js"; export function createTestBundle(options = {}) { const req = new FakeReq(options); const res = new FakeRes(); const params = options.params ?? {}; const methods = [options.method ?? 'GET']; const context = options.context; return createBundle(req, res, params, methods, context); }