MCPcopy
hub / github.com/alam00000/bentopdf / MockLoadingTask

Interface MockLoadingTask

src/tests/password-prompt.test.ts:35–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35interface MockLoadingTask {
36 promise: Promise<{ destroy: () => Promise<void> }>;
37 onPassword: ((callback: (pw: string) => void, reason: number) => void) | null;
38 destroy: () => Promise<void>;
39}
40
41function mockDestroy() {
42 return vi.fn().mockReturnValue(Promise.resolve());

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected