chore(ci): fix lint and swiftformat failures
This commit is contained in:
@@ -2,10 +2,15 @@ import { describe, expect, it, vi } from "vitest";
|
||||
|
||||
import { startTelegramWebhook } from "./webhook.js";
|
||||
|
||||
const handlerSpy = vi.fn((req: any, res: any) => {
|
||||
res.writeHead(200);
|
||||
res.end("ok");
|
||||
});
|
||||
const handlerSpy = vi.fn(
|
||||
(
|
||||
_req: unknown,
|
||||
res: { writeHead: (status: number) => void; end: (body?: string) => void },
|
||||
) => {
|
||||
res.writeHead(200);
|
||||
res.end("ok");
|
||||
},
|
||||
);
|
||||
const setWebhookSpy = vi.fn();
|
||||
const stopSpy = vi.fn();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user