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:
parent
0dabbb611e
commit
a82a120dcd
@ -3,9 +3,7 @@
|
||||
* 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";
|
||||
|
||||
export default getGlobalOverride(showErrorPopupInjectable, () => () => {
|
||||
throw new Error("Tried to show an error popup without an override");
|
||||
});
|
||||
export default getGlobalOverrideForFunction(showErrorPopupInjectable);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user