Browse Source

ref(js): Convert organizationStore.spec to tsx (#51116)

Evan Purkhiser 1 year ago
parent
commit
371df0a7c2
1 changed files with 2 additions and 1 deletions
  1. 2 1
      static/app/stores/organizationStore.spec.tsx

+ 2 - 1
static/app/stores/organizationStore.spec.jsx → static/app/stores/organizationStore.spec.tsx

@@ -1,4 +1,5 @@
 import OrganizationStore from 'sentry/stores/organizationStore';
+import RequestError from 'sentry/utils/requestError/requestError';
 
 describe('OrganizationStore', function () {
   beforeEach(function () {
@@ -51,7 +52,7 @@ describe('OrganizationStore', function () {
   });
 
   it('errors correctly', function () {
-    const error = new Error('uh-oh');
+    const error = new RequestError('GET', '/some/path', new Error('uh oh'));
     error.status = 404;
     OrganizationStore.onFetchOrgError(error);
     expect(OrganizationStore.get()).toMatchObject({