chore(ci): fix lint and swiftformat failures
This commit is contained in:
1 parent
68d19d4717
commit
f65702a8a8
21 files changed
+161
-102
No files matched your search
@@ -3,11 +3,12 @@ import { describe, expect, it, vi } from "vitest";
|
||||
const useSpy = vi.fn();
|
||||
const onSpy = vi.fn();
|
||||
const stopSpy = vi.fn();
|
||||
const apiStub = { config: { use: useSpy } };
|
||||
type ApiStub = { config: { use: (arg: unknown) => void } };
|
||||
const apiStub: ApiStub = { config: { use: useSpy } };
|
||||
|
||||
vi.mock("grammy", () => ({
|
||||
Bot: class {
|
||||
api = apiStub as any;
|
||||
api = apiStub;
|
||||
on = onSpy;
|
||||
stop = stopSpy;
|
||||
constructor(public token: string) {}
|
||||
|
||||
Reference in new issue
Block a user