Просмотр исходного кода

ref(ts): Convert pipelineView.spec to tsx (#52014)

Evan Purkhiser 1 год назад
Родитель
Сommit
ff9569a9f8
1 измененных файлов с 1 добавлено и 4 удалено
  1. 1 4
      static/app/views/integrationPipeline/pipelineView.spec.tsx

+ 1 - 4
static/app/views/integrationPipeline/pipelineView.spec.jsx → static/app/views/integrationPipeline/pipelineView.spec.tsx

@@ -25,10 +25,7 @@ describe('PipelineView', () => {
   });
   });
 
 
   it('errros on invalid pipelineName', () => {
   it('errros on invalid pipelineName', () => {
-    jest.spyOn(console, 'error');
-
-    // eslint-disable-next-line no-console
-    console.error.mockImplementation(() => {});
+    jest.spyOn(console, 'error').mockImplementation(() => {});
 
 
     expect(() => render(<PipelineView pipelineName="other" />)).toThrow(
     expect(() => render(<PipelineView pipelineName="other" />)).toThrow(
       'Invalid pipeline name other'
       'Invalid pipeline name other'