diff options
Diffstat (limited to 'spec/frontend/clusters_list/store/actions_spec.js')
-rw-r--r-- | spec/frontend/clusters_list/store/actions_spec.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/frontend/clusters_list/store/actions_spec.js b/spec/frontend/clusters_list/store/actions_spec.js index 6d23db0517d..9e6da595a75 100644 --- a/spec/frontend/clusters_list/store/actions_spec.js +++ b/spec/frontend/clusters_list/store/actions_spec.js @@ -18,10 +18,6 @@ describe('Clusters store actions', () => { describe('reportSentryError', () => { beforeEach(() => { - jest.spyOn(Sentry, 'withScope').mockImplementation((fn) => { - const mockScope = { setTag: () => {} }; - fn(mockScope); - }); captureException = jest.spyOn(Sentry, 'captureException'); }); @@ -34,7 +30,11 @@ describe('Clusters store actions', () => { const tag = 'sentryErrorTag'; await testAction(actions.reportSentryError, { error: sentryError, tag }, {}, [], []); - expect(captureException).toHaveBeenCalledWith(sentryError); + expect(captureException).toHaveBeenCalledWith(sentryError, { + tags: { + javascript_clusters_list: tag, + }, + }); }); }); |