From f3bdabb777ec47593a87d0999cf16ba9afd48e67 Mon Sep 17 00:00:00 2001 From: Janne Savolainen Date: Fri, 20 May 2022 13:54:49 +0300 Subject: [PATCH] Add missing global override Signed-off-by: Janne Savolainen --- src/renderer/getDiForUnitTesting.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/renderer/getDiForUnitTesting.tsx b/src/renderer/getDiForUnitTesting.tsx index 600d8fe072..adc70e2a41 100644 --- a/src/renderer/getDiForUnitTesting.tsx +++ b/src/renderer/getDiForUnitTesting.tsx @@ -43,6 +43,7 @@ import setupOnApiErrorListenersInjectable from "./api/setup-on-api-errors.inject import { observable } from "mobx"; import defaultShellInjectable from "./components/+preferences/default-shell.injectable"; import appVersionInjectable from "../common/get-configuration-file-model/app-version/app-version.injectable"; +import provideInitialValuesForSyncBoxesInjectable from "./sync-box/provide-initial-values-for-sync-boxes.injectable"; export const getDiForUnitTesting = (opts: GetDiForUnitTestingOptions = {}) => { const { @@ -101,6 +102,7 @@ export const getDiForUnitTesting = (opts: GetDiForUnitTestingOptions = {}) => { di.override(clusterStoreInjectable, () => ({ getById: (id): Cluster => ({}) as Cluster }) as ClusterStore); di.override(setupOnApiErrorListenersInjectable, () => ({ run: () => {} })); + di.override(provideInitialValuesForSyncBoxesInjectable, () => ({ run: () => {} })); di.override(defaultShellInjectable, () => "some-default-shell");