From d31d2948c315320ded799949a61d85afad4a74d4 Mon Sep 17 00:00:00 2001 From: mahmed2000 Date: Fri, 8 Nov 2024 19:43:41 +0000 Subject: [PATCH] Change websocket mock from empty object to empty class (#3998) --- web/components/layouts/Main/Main.stories.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/components/layouts/Main/Main.stories.tsx b/web/components/layouts/Main/Main.stories.tsx index fccf6329c..b1d2573d7 100644 --- a/web/components/layouts/Main/Main.stories.tsx +++ b/web/components/layouts/Main/Main.stories.tsx @@ -41,7 +41,7 @@ export default meta; // mock the Websocket to prevent ani webhook calls from being made in storybook // @ts-ignore -window.WebSocket = () => {}; +window.WebSocket = class {}; type StateInitializer = (mutableState: MutableSnapshot) => void;