From ea286143ebee6f8528e6d41ec56d88350decd63f Mon Sep 17 00:00:00 2001 From: mdshamoon Date: Wed, 25 Oct 2023 19:57:18 +0530 Subject: [PATCH] deepscan issues fixed --- src/components/floweditor/FlowEditor.test.tsx | 1 - src/components/simulator/Simulator.test.tsx | 20 +++++++++---------- src/components/simulator/Simulator.tsx | 2 +- .../Chat/ChatInterface/ChatInterface.tsx | 1 + 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/components/floweditor/FlowEditor.test.tsx b/src/components/floweditor/FlowEditor.test.tsx index ef780db1a..85be42657 100644 --- a/src/components/floweditor/FlowEditor.test.tsx +++ b/src/components/floweditor/FlowEditor.test.tsx @@ -1,7 +1,6 @@ import { BrowserRouter as Router } from 'react-router-dom'; import { MockedProvider } from '@apollo/client/testing'; import { render, waitFor, fireEvent, screen } from '@testing-library/react'; -import userEvent from '@testing-library/user-event'; import { vi } from 'vitest'; import { FlowEditor } from './FlowEditor'; diff --git a/src/components/simulator/Simulator.test.tsx b/src/components/simulator/Simulator.test.tsx index bb0703725..a5dca78fb 100644 --- a/src/components/simulator/Simulator.test.tsx +++ b/src/components/simulator/Simulator.test.tsx @@ -222,16 +222,16 @@ test('simulator should render template message', () => { ); }); -const getFlowKeywordMock = vi.fn(); -const props = { - showSimulator: true, - setSimulatorId: vi.fn(), - simulatorIcon: true, - isPreviewMessage: false, - flowSimulator: false, - getFlowKeyword: getFlowKeywordMock, - hasResetButton: true, -}; +// const getFlowKeywordMock = vi.fn(); +// const props = { +// showSimulator: true, +// setSimulatorId: vi.fn(), +// simulatorIcon: true, +// isPreviewMessage: false, +// flowSimulator: false, +// getFlowKeyword: getFlowKeywordMock, +// hasResetButton: true, +// }; // Todo: fix this test // test('simulator should reset on clicking the reset button message', () => { diff --git a/src/components/simulator/Simulator.tsx b/src/components/simulator/Simulator.tsx index e0b23599b..28c89d9dc 100644 --- a/src/components/simulator/Simulator.tsx +++ b/src/components/simulator/Simulator.tsx @@ -34,7 +34,7 @@ import { RELEASE_SIMULATOR, SIMULATOR_SEARCH_QUERY, } from 'graphql/queries/Simulator'; -import { SIMULATOR_RELEASE_SUBSCRIPTION } from 'graphql/subscriptions/PeriodicInfo'; +// import { SIMULATOR_RELEASE_SUBSCRIPTION } from 'graphql/subscriptions/PeriodicInfo'; import { getUserSession } from 'services/AuthService'; import { setNotification } from 'common/notification'; import setLogs from 'config/logs'; diff --git a/src/containers/Chat/ChatInterface/ChatInterface.tsx b/src/containers/Chat/ChatInterface/ChatInterface.tsx index a9a58678e..96fb0d523 100644 --- a/src/containers/Chat/ChatInterface/ChatInterface.tsx +++ b/src/containers/Chat/ChatInterface/ChatInterface.tsx @@ -152,6 +152,7 @@ export const ChatInterface = ({ savedSearches, collectionType }: ChatInterfacePr {tabs.map((tab) => (