Browse Source

ref: Convert subscriptionBox.spec.jsx to typescript (#53728)

Ryan Albrecht 1 year ago
parent
commit
f9b30186ff

+ 4 - 2
static/app/views/settings/organizationDeveloperSettings/subscriptionBox.spec.jsx → static/app/views/settings/organizationDeveloperSettings/subscriptionBox.spec.tsx

@@ -1,3 +1,5 @@
+import type {ComponentProps} from 'react';
+
 import {render, screen, userEvent} from 'sentry-test/reactTestingLibrary';
 
 import SubscriptionBox from 'sentry/views/settings/organizationDeveloperSettings/subscriptionBox';
@@ -9,8 +11,7 @@ describe('SubscriptionBox', () => {
   beforeEach(() => {
     onChange.mockReset();
   });
-
-  function renderComponent(props) {
+  function renderComponent(props: Partial<ComponentProps<typeof SubscriptionBox>> = {}) {
     return render(
       <SubscriptionBox
         resource="issue"
@@ -18,6 +19,7 @@ describe('SubscriptionBox', () => {
         disabledFromPermissions={false}
         onChange={onChange}
         organization={org}
+        isNew={false}
         {...props}
       />
     );