From 2666fedf2eb00301aefc395f308330c551112928 Mon Sep 17 00:00:00 2001 From: Oskar Michalkiewicz Date: Mon, 9 Oct 2023 14:37:23 +0000 Subject: [PATCH] lint and test fix --- packages/app/src/connecting/components/connecting.test.tsx | 7 ++++++- .../sync-contacts-modal/sync-contacts-modal.component.tsx | 1 - 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/app/src/connecting/components/connecting.test.tsx b/packages/app/src/connecting/components/connecting.test.tsx index e716e50825..fd0ac4978d 100644 --- a/packages/app/src/connecting/components/connecting.test.tsx +++ b/packages/app/src/connecting/components/connecting.test.tsx @@ -18,7 +18,12 @@ import { Provider } from "react-redux" import store from "App/__deprecated__/renderer/store" jest.mock("App/connecting/requests/register-first-phone-connection") - +jest.mock("App/device-manager/listeners") +jest.mock("react-router", () => ({ + useHistory: () => ({ + push: jest.fn(), + }), +})) type Props = ComponentProps const defaultProps: Props = { diff --git a/packages/app/src/contacts/components/sync-contacts-modal/sync-contacts-modal.component.tsx b/packages/app/src/contacts/components/sync-contacts-modal/sync-contacts-modal.component.tsx index cc782603a1..ec17733d8f 100644 --- a/packages/app/src/contacts/components/sync-contacts-modal/sync-contacts-modal.component.tsx +++ b/packages/app/src/contacts/components/sync-contacts-modal/sync-contacts-modal.component.tsx @@ -27,7 +27,6 @@ import { import { IconType } from "App/__deprecated__/renderer/components/core/icon/icon-type" import InputFileSelect from "App/contacts/components/sync-contacts-modal/input-file-select" import { ipcRenderer } from "electron-better-ipc" -import { HelpActions } from "App/__deprecated__/common/enums/help-actions.enum" import { BrowserActions } from "App/__deprecated__/common/enums/browser-actions.enum" const messages = defineMessages({