Browse Source

ref(ts): Convert traceLiteQuery.spec to tsx (#51985)

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

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

@@ -2,7 +2,6 @@ import {Fragment} from 'react';
 
 import {render, screen} from 'sentry-test/reactTestingLibrary';
 
-import {Client} from 'sentry/api';
 import TraceLiteQuery from 'sentry/utils/performance/quickTrace/traceLiteQuery';
 
 const traceId = 'abcdef1234567890';
@@ -28,9 +27,8 @@ function renderTraceLite({isLoading, error, trace, type}) {
 }
 
 describe('TraceLiteQuery', function () {
-  let api, location;
+  let location;
   beforeEach(function () {
-    api = new Client();
     location = {
       pathname: '/',
       query: {},
@@ -45,7 +43,6 @@ describe('TraceLiteQuery', function () {
     });
     render(
       <TraceLiteQuery
-        api={api}
         traceId={traceId}
         eventId={eventId}
         location={location}