Browse Source

test(js): Remove browserHistory from organization actionCreators test (#82592)

As far as I can tell browserHistory.replace would never even be called
from calling fetchOrganizations that this test is testing.
Evan Purkhiser 2 months ago
parent
commit
16d4d44f12
1 changed files with 0 additions and 2 deletions
  1. 0 2
      static/app/actionCreators/organizations.spec.tsx

+ 0 - 2
static/app/actionCreators/organizations.spec.tsx

@@ -2,7 +2,6 @@ import {OrganizationFixture} from 'sentry-fixture/organization';
 
 import {fetchOrganizations} from 'sentry/actionCreators/organizations';
 import ConfigStore from 'sentry/stores/configStore';
-import {browserHistory} from 'sentry/utils/browserHistory';
 
 describe('fetchOrganizations', function () {
   const api = new MockApiClient();
@@ -76,6 +75,5 @@ describe('fetchOrganizations', function () {
     expect(usMock).toHaveBeenCalledTimes(1);
     expect(deMock).toHaveBeenCalledTimes(1);
     expect(window.location.reload).not.toHaveBeenCalled();
-    expect(browserHistory.replace).not.toHaveBeenCalled();
   });
 });