mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Replace individual mocks for withTooltip with global mock
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
38 files changed
+1347
-753
No files matched your search
@@ -18,11 +18,6 @@ import showSuccessNotificationInjectable from "../../renderer/components/notific
|
||||
import showErrorNotificationInjectable from "../../renderer/components/notifications/show-error-notification.injectable";
|
||||
import type { AsyncResult } from "../../common/utils/async-result";
|
||||
|
||||
// TODO: Make tooltips free of side effects by making it deterministic
|
||||
jest.mock("../../renderer/components/tooltip/withTooltip", () => ({
|
||||
withTooltip: (target: any) => target,
|
||||
}));
|
||||
|
||||
describe("add custom helm repository in preferences", () => {
|
||||
let applicationBuilder: ApplicationBuilder;
|
||||
let showSuccessNotificationMock: jest.Mock;
|
||||
|
||||
Reference in new issue
Block a user