File tree Expand file tree Collapse file tree 3 files changed +3
-21
lines changed Expand file tree Collapse file tree 3 files changed +3
-21
lines changed Original file line number Diff line number Diff line change @@ -2,26 +2,15 @@ import React from 'react';
22import Edit from 'components/Schemas/Edit/Edit' ;
33import { render , WithRoute } from 'lib/testHelpers' ;
44import { 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' ;
96import { screen } from '@testing-library/dom' ;
107import 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
2313const clusterName = 'testClusterName' ;
24- const schemasAPILatestUrl = `/api/clusters/${ clusterName } /schemas/${ schemaVersion . subject } /latest` ;
2514
2615const renderComponent = ( context : ContextProps = contextInitialValue ) =>
2716 render (
Original file line number Diff line number Diff line change @@ -35,7 +35,6 @@ jest.mock('lib/hooks/api/topics', () => ({
3535 useClearTopicMessages : jest . fn ( ) ,
3636} ) ) ;
3737
38- const unwrapMock = jest . fn ( ) ;
3938const clearTopicMessages = jest . fn ( ) ;
4039
4140jest . mock ( 'components/Topics/Topic/Overview/Overview' , ( ) => ( ) => (
Original file line number Diff line number Diff line change 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
93export type TopicName = Topic [ 'name' ] ;
104
You can’t perform that action at this time.
0 commit comments