Browse Source

ref(ts): Convert adminSettings.spec to tsx (#51932)

Evan Purkhiser 1 year ago
parent
commit
e643d3d653
1 changed files with 2 additions and 3 deletions
  1. 2 3
      static/app/views/admin/adminSettings.spec.tsx

+ 2 - 3
static/app/views/admin/adminSettings.spec.jsx → static/app/views/admin/adminSettings.spec.tsx

@@ -1,6 +1,5 @@
 import {render} from 'sentry-test/reactTestingLibrary';
 
-import {Client} from 'sentry/api';
 import AdminSettings from 'sentry/views/admin/adminSettings';
 
 // TODO(dcramer): this doesnt really test anything as we need to
@@ -8,7 +7,7 @@ import AdminSettings from 'sentry/views/admin/adminSettings';
 describe('AdminSettings', function () {
   describe('render()', function () {
     beforeEach(() => {
-      Client.addMockResponse({
+      MockApiClient.addMockResponse({
         url: '/internal/options/',
         body: {
           'system.url-prefix': {
@@ -115,7 +114,7 @@ describe('AdminSettings', function () {
     });
 
     it('renders', function () {
-      const wrapper = render(<AdminSettings params={{}} />);
+      const wrapper = render(<AdminSettings />);
       expect(wrapper.container).toSnapshot();
     });
   });