Skip to content

Commit

Permalink
Fix eslint bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Mgrdich committed Apr 14, 2024
1 parent 9eaafcf commit bd4d4fc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 21 deletions.
15 changes: 2 additions & 13 deletions frontend/src/components/Schemas/Edit/__tests__/Edit.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,15 @@ import React from 'react';
import Edit from 'components/Schemas/Edit/Edit';
import { render, WithRoute } from 'lib/testHelpers';
import { clusterSchemaEditPath } from 'lib/paths';
import {
schemaVersion,
schemaVersionWithNonAsciiChars,
} from 'components/Schemas/Edit/__tests__/fixtures';
import { schemaVersion } from 'components/Schemas/Edit/__tests__/fixtures';
import { screen } from '@testing-library/dom';
import ClusterContext, {
ContextProps,
initialValue as contextInitialValue,
} from 'components/contexts/ClusterContext';
import fetchMock from 'fetch-mock';
import { act } from '@testing-library/react';
import { before } from 'lodash';

import {
useCreateSchema,
useGetLatestSchema,
} from '../../../../lib/hooks/api/schemas';
import { useGetLatestSchema } from 'lib/hooks/api/schemas';

const clusterName = 'testClusterName';
const schemasAPILatestUrl = `/api/clusters/${clusterName}/schemas/${schemaVersion.subject}/latest`;

const renderComponent = (context: ContextProps = contextInitialValue) =>
render(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ jest.mock('lib/hooks/api/topics', () => ({
useClearTopicMessages: jest.fn(),
}));

const unwrapMock = jest.fn();
const clearTopicMessages = jest.fn();

jest.mock('components/Topics/Topic/Overview/Overview', () => () => (
Expand Down
8 changes: 1 addition & 7 deletions frontend/src/lib/interfaces/topic.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
import {
Topic,
TopicConfig,
TopicCreation,
TopicMessage,
TopicMessageConsuming,
} from 'generated-sources';
import { Topic, TopicConfig, TopicCreation } from 'generated-sources';

export type TopicName = Topic['name'];

Expand Down

0 comments on commit bd4d4fc

Please sign in to comment.