arrow-express
Version:
Library to bootstrap express applications with zero configuration
14 lines (12 loc) • 360 B
text/typescript
import { Route } from "./route";
describe("Route", () => {
const req = {};
const res = {};
describe("Request handle configuration", () => {
it("should call handler", () => {
const spy = vi.fn();
Route().handler(spy).getRequestHandler()(req, res, undefined);
expect(spy).toHaveBeenCalledWith(req, res, undefined);
});
});
});