|
@@ -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}
|
|
|
/>
|
|
|
);
|