mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-10 13:22:14 +00:00
test(logging): type the probe handler's request argument
This commit is contained in:
1 parent
72214c0208
commit
ca937ba87a
1 file changed
+3
-1
@@ -96,7 +96,9 @@ describe("apiHandler's wide event", () => {
|
||||
});
|
||||
|
||||
it("still scrubs a path secret from both fields", async () => {
|
||||
const route = apiHandler(async () => apiSuccess({ ok: true }));
|
||||
const route = apiHandler(async (_req: NextRequest) =>
|
||||
apiSuccess({ ok: true }),
|
||||
);
|
||||
// No params handed in: the route falls back to the pathname, and the
|
||||
// redaction floor still hides the secret.
|
||||
await route(
|
||||
|
||||
Reference in new issue
Block a user