diff --git a/src/flow.spec.ts b/src/flow.spec.ts index 5d10bdb2..c47397c0 100644 --- a/src/flow.spec.ts +++ b/src/flow.spec.ts @@ -139,10 +139,7 @@ describe('flow(router: RouterType, options: FlowOptions): RequestHandler', () => }) it('if set to false, will not add notFound handler (allow undefined passthrough)', async () => { - let response = await flow(router, { - notFound: false, - // format: false, - })(request('/missing')) + let response = await flow(router, { notFound: false })(request('/missing')) expect(response).toBe(undefined) }) diff --git a/src/flow.ts b/src/flow.ts index c2ad23fe..e4b77cbb 100644 --- a/src/flow.ts +++ b/src/flow.ts @@ -32,7 +32,7 @@ export const flow = (router: RouterType, options: FlowOptions = {}) => { } return async (...args: any[]) => { - // @ts-expect-error + // @ts-expect-error - nothing wrong with this let response = router.handle(...args) response = format ? response.then(v => v === undefined ? v : format(v)) : response // @ts-expect-error - add optional error handling