Change websocket mock from empty object to empty class (#3998)
This commit is contained in:
@@ -41,7 +41,7 @@ export default meta;
|
|||||||
|
|
||||||
// mock the Websocket to prevent ani webhook calls from being made in storybook
|
// mock the Websocket to prevent ani webhook calls from being made in storybook
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
window.WebSocket = () => {};
|
window.WebSocket = class {};
|
||||||
|
|
||||||
type StateInitializer = (mutableState: MutableSnapshot) => void;
|
type StateInitializer = (mutableState: MutableSnapshot) => void;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user