Browse Source

ref(stores): Remove makeSafeRefluxStore from non-listening stores (#38397)

Evan Purkhiser 2 years ago
parent
commit
79ce23d234

+ 0 - 1
static/app/components/actions/resolve.spec.jsx

@@ -19,7 +19,6 @@ describe('ResolveActions', function () {
   afterEach(() => {
     spy.mockClear();
     MockApiClient.clearMockResponses();
-    ModalStore.teardown();
   });
 
   describe('disabled', function () {

+ 0 - 2
static/app/components/assigneeSelector.spec.jsx

@@ -113,8 +113,6 @@ describe('AssigneeSelector', () => {
 
   afterEach(() => {
     Client.clearMockResponses();
-    MemberListStore.teardown();
-    GroupStore.teardown();
     ProjectsStore.teardown();
     TeamStore.teardown();
   });

+ 0 - 1
static/app/components/customResolutionModal.spec.jsx

@@ -17,7 +17,6 @@ describe('CustomResolutionModal', () => {
 
   afterEach(() => {
     MockApiClient.clearMockResponses();
-    ConfigStore.teardown();
   });
 
   it('can select a version', async () => {

+ 0 - 3
static/app/components/globalModal/globalModal.spec.jsx

@@ -14,9 +14,6 @@ describe('GlobalModal', function () {
   beforeEach(() => {
     ModalStore.reset();
   });
-  afterEach(() => {
-    ModalStore.teardown();
-  });
 
   it('uses actionCreators to open and close Modal', async function () {
     renderGlobalModal();

+ 0 - 1
static/app/components/group/suggestedOwners.spec.jsx

@@ -44,7 +44,6 @@ describe('SuggestedOwners', function () {
   afterEach(function () {
     Client.clearMockResponses();
     TeamStore.teardown();
-    CommitterStore.teardown();
   });
 
   it('Renders suggested owners', async function () {

+ 0 - 1
static/app/components/hook.spec.jsx

@@ -12,7 +12,6 @@ const HookWrapper = props => (
 
 describe('Hook', function () {
   afterEach(function () {
-    HookStore.teardown();
     HookStore.init();
   });
 

+ 0 - 4
static/app/components/modals/sudoModal.spec.jsx

@@ -41,10 +41,6 @@ describe('Sudo Modal', function () {
     });
   });
 
-  afterEach(() => {
-    ConfigStore.teardown();
-  });
-
   it('can delete an org with sudo flow', async function () {
     setHasPasswordAuth(true);
 

+ 0 - 4
static/app/components/organizations/environmentSelector.spec.tsx

@@ -39,10 +39,6 @@ describe('EnvironmentSelector', function () {
     onUpdate.mockReset();
   });
 
-  afterEach(() => {
-    ConfigStore.teardown();
-  });
-
   const selectorProps = {
     organization,
     projects,

+ 1 - 0
static/app/components/profiling/ProfilingOnboarding/profilingOnboardingModal.spec.tsx

@@ -27,6 +27,7 @@ describe('ProfilingOnboarding', function () {
   beforeEach(() => {
     ProjectStore.teardown();
   });
+
   it('renders default step', () => {
     render(<ProfilingOnboardingModal {...MockRenderModalProps} />);
     expect(screen.getByText(/Select a Project/i)).toBeInTheDocument();

+ 0 - 1
static/app/components/stream/streamGroup.spec.jsx

@@ -36,7 +36,6 @@ describe('StreamGroup', function () {
   afterEach(function () {
     trackAdvancedAnalyticsEvent.mockClear();
     GroupStore.reset();
-    GroupStore.teardown();
   });
 
   it('renders with anchors', function () {

Some files were not shown because too many files changed in this diff