Skip to content

Commit

Permalink
deepscan issues fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
mdshamoon committed Oct 25, 2023
1 parent b6f2091 commit ea28614
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
1 change: 0 additions & 1 deletion src/components/floweditor/FlowEditor.test.tsx
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
20 changes: 10 additions & 10 deletions src/components/simulator/Simulator.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/simulator/Simulator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
1 change: 1 addition & 0 deletions src/containers/Chat/ChatInterface/ChatInterface.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ export const ChatInterface = ({ savedSearches, collectionType }: ChatInterfacePr
<Tabs value={value} onChange={handleTabChange} aria-label="basic tabs example">
{tabs.map((tab) => (
<Tab
key={tab.label}
classes={{ selected: styles.TabSelected }}
className={styles.Tab}
label={tab.label}
Expand Down

0 comments on commit ea28614

Please sign in to comment.