mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-06-21 20:51:46 +00:00
12 lines
317 B
TypeScript
12 lines
317 B
TypeScript
export const mockJSZipFile = vi.fn();
|
|
export const mockJSZipGenerateAsync = vi.fn().mockReturnValue("THISISBASE64");
|
|
|
|
vi.mock("jszip", () => ({
|
|
default: vi.fn().mockImplementation(() => {
|
|
return {
|
|
file: mockJSZipFile,
|
|
generateAsync: mockJSZipGenerateAsync,
|
|
};
|
|
}),
|
|
}));
|