mirror of
https://github.com/moltbot/moltbot.git
synced 2026-03-07 22:44:16 +00:00
test: fix TS2742 in telegram media test utils
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
import { afterEach, beforeAll, beforeEach, expect, vi } from "vitest";
|
||||
import { afterEach, beforeAll, beforeEach, expect, vi, type Mock } from "vitest";
|
||||
import * as ssrf from "../infra/net/ssrf.js";
|
||||
import { onSpy, sendChatActionSpy } from "./bot.media.e2e-harness.js";
|
||||
|
||||
export const cacheStickerSpy = vi.fn();
|
||||
export const getCachedStickerSpy = vi.fn();
|
||||
export const describeStickerImageSpy = vi.fn();
|
||||
type StickerSpy = Mock<(...args: unknown[]) => unknown>;
|
||||
|
||||
export const cacheStickerSpy: StickerSpy = vi.fn();
|
||||
export const getCachedStickerSpy: StickerSpy = vi.fn();
|
||||
export const describeStickerImageSpy: StickerSpy = vi.fn();
|
||||
|
||||
const resolvePinnedHostname = ssrf.resolvePinnedHostname;
|
||||
const lookupMock = vi.fn();
|
||||
|
||||
Reference in New Issue
Block a user