diff options
Diffstat (limited to 'spec/frontend/emoji/awards_app/store/actions_spec.js')
-rw-r--r-- | spec/frontend/emoji/awards_app/store/actions_spec.js | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/spec/frontend/emoji/awards_app/store/actions_spec.js b/spec/frontend/emoji/awards_app/store/actions_spec.js index 0761256ed23..cd3dfab30d4 100644 --- a/spec/frontend/emoji/awards_app/store/actions_spec.js +++ b/spec/frontend/emoji/awards_app/store/actions_spec.js @@ -8,10 +8,6 @@ jest.mock('@sentry/browser'); jest.mock('~/vue_shared/plugins/global_toast'); describe('Awards app actions', () => { - afterEach(() => { - window.gon = {}; - }); - describe('setInitialData', () => { it('commits SET_INITIAL_DATA', async () => { await testAction( @@ -52,8 +48,6 @@ describe('Awards app actions', () => { }); it('commits FETCH_AWARDS_SUCCESS', async () => { - window.gon.current_user_id = 1; - await testAction( actions.fetchAwards, '1', @@ -62,10 +56,6 @@ describe('Awards app actions', () => { [{ type: 'fetchAwards', payload: '2' }], ); }); - - it('does not commit FETCH_AWARDS_SUCCESS when user signed out', async () => { - await testAction(actions.fetchAwards, '1', { path: '/awards' }, [], []); - }); }); }); @@ -75,8 +65,6 @@ describe('Awards app actions', () => { }); it('calls Sentry.captureException', async () => { - window.gon = { current_user_id: 1 }; - await testAction(actions.fetchAwards, null, { path: '/awards' }, [], [], () => { expect(Sentry.captureException).toHaveBeenCalled(); }); |