1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Add general override for behavioural tests

Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>

Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
This commit is contained in:
Iku-turso 2022-04-26 14:55:40 +03:00 committed by Janne Savolainen
parent 823cab8170
commit 2e58058904
No known key found for this signature in database
GPG Key ID: 8C6CFB2FFFE8F68A

View File

@ -84,6 +84,8 @@ export const overrideIpcBridge = ({
windowManagerInjectable, windowManagerInjectable,
() => () =>
({ ({
ensureMainWindow: () => Promise.resolve(),
sendToView: ({ channel: channelName, data }: SendToViewArgs) => { sendToView: ({ channel: channelName, data }: SendToViewArgs) => {
const handles = rendererIpcFakeHandles.get(channelName); const handles = rendererIpcFakeHandles.get(channelName);