Skip to content

Commit bd4d4fc

Browse files
committed
Fix eslint bugs
1 parent 9eaafcf commit bd4d4fc

File tree

3 files changed

+3
-21
lines changed

3 files changed

+3
-21
lines changed

frontend/src/components/Schemas/Edit/__tests__/Edit.spec.tsx

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,15 @@ import React from 'react';
22
import Edit from 'components/Schemas/Edit/Edit';
33
import { render, WithRoute } from 'lib/testHelpers';
44
import { clusterSchemaEditPath } from 'lib/paths';
5-
import {
6-
schemaVersion,
7-
schemaVersionWithNonAsciiChars,
8-
} from 'components/Schemas/Edit/__tests__/fixtures';
5+
import { schemaVersion } from 'components/Schemas/Edit/__tests__/fixtures';
96
import { screen } from '@testing-library/dom';
107
import ClusterContext, {
118
ContextProps,
129
initialValue as contextInitialValue,
1310
} from 'components/contexts/ClusterContext';
14-
import fetchMock from 'fetch-mock';
15-
import { act } from '@testing-library/react';
16-
import { before } from 'lodash';
17-
18-
import {
19-
useCreateSchema,
20-
useGetLatestSchema,
21-
} from '../../../../lib/hooks/api/schemas';
11+
import { useGetLatestSchema } from 'lib/hooks/api/schemas';
2212

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

2615
const renderComponent = (context: ContextProps = contextInitialValue) =>
2716
render(

frontend/src/components/Topics/Topic/__test__/Topic.spec.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ jest.mock('lib/hooks/api/topics', () => ({
3535
useClearTopicMessages: jest.fn(),
3636
}));
3737

38-
const unwrapMock = jest.fn();
3938
const clearTopicMessages = jest.fn();
4039

4140
jest.mock('components/Topics/Topic/Overview/Overview', () => () => (

frontend/src/lib/interfaces/topic.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
import {
2-
Topic,
3-
TopicConfig,
4-
TopicCreation,
5-
TopicMessage,
6-
TopicMessageConsuming,
7-
} from 'generated-sources';
1+
import { Topic, TopicConfig, TopicCreation } from 'generated-sources';
82

93
export type TopicName = Topic['name'];
104

0 commit comments

Comments
 (0)