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

Fix many tests by changing injectables

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2022-11-08 13:43:50 -05:00
parent 0dabbb611e
commit a82a120dcd

View File

@ -3,9 +3,7 @@
* Licensed under MIT License. See LICENSE in root directory for more information. * Licensed under MIT License. See LICENSE in root directory for more information.
*/ */
import { getGlobalOverride } from "../../../common/test-utils/get-global-override"; import { getGlobalOverrideForFunction } from "../../../common/test-utils/get-global-override-for-function";
import showErrorPopupInjectable from "./show-error-popup.injectable"; import showErrorPopupInjectable from "./show-error-popup.injectable";
export default getGlobalOverride(showErrorPopupInjectable, () => () => { export default getGlobalOverrideForFunction(showErrorPopupInjectable);
throw new Error("Tried to show an error popup without an override");
});