mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-08-29 07:08:56 +00:00
12 lines
212 B
TypeScript
12 lines
212 B
TypeScript
import utils from "../../lib/util/utils";
|
|
|
|
const spy = vi.spyOn(utils, "sleep");
|
|
|
|
export function mock(): void {
|
|
spy.mockImplementation(vi.fn());
|
|
}
|
|
|
|
export function restore(): void {
|
|
spy.mockRestore();
|
|
}
|