Browse Source

ref(ts): Convert traceMetaQuery.spec to tsx (#51984)

Evan Purkhiser 1 year ago
parent
commit
30cd6b2311
1 changed files with 1 additions and 4 deletions
  1. 1 4
      static/app/utils/performance/quickTrace/traceMetaQuery.spec.tsx

+ 1 - 4
static/app/utils/performance/quickTrace/traceMetaQuery.spec.jsx → static/app/utils/performance/quickTrace/traceMetaQuery.spec.tsx

@@ -2,7 +2,6 @@ import {Fragment} from 'react';
 
 import {render, screen} from 'sentry-test/reactTestingLibrary';
 
-import {Client} from 'sentry/api';
 import TraceMetaQuery from 'sentry/utils/performance/quickTrace/traceMetaQuery';
 
 const traceId = 'abcdef1234567890';
@@ -30,9 +29,8 @@ function renderMeta({isLoading, error, meta}) {
 }
 
 describe('TraceMetaQuery', function () {
-  let api, location;
+  let location;
   beforeEach(function () {
-    api = new Client();
     location = {
       pathname: '/',
       query: {},
@@ -50,7 +48,6 @@ describe('TraceMetaQuery', function () {
     });
     render(
       <TraceMetaQuery
-        api={api}
         traceId={traceId}
         location={location}
         orgSlug="test-org"