diff options
Diffstat (limited to 'spec/frontend/sentry_error_stack_trace/components/sentry_error_stack_trace_spec.js')
-rw-r--r-- | spec/frontend/sentry_error_stack_trace/components/sentry_error_stack_trace_spec.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/frontend/sentry_error_stack_trace/components/sentry_error_stack_trace_spec.js b/spec/frontend/sentry_error_stack_trace/components/sentry_error_stack_trace_spec.js index fb50b31a3da..e5f83b6fa49 100644 --- a/spec/frontend/sentry_error_stack_trace/components/sentry_error_stack_trace_spec.js +++ b/spec/frontend/sentry_error_stack_trace/components/sentry_error_stack_trace_spec.js @@ -69,15 +69,17 @@ describe('Sentry Error Stack Trace', () => { }); describe('Stack trace', () => { - it('should show stacktrace', () => { + beforeEach(() => { store.state.details.loadingStacktrace = false; + }); + + it('should show stacktrace', () => { mountComponent({ stubs: {} }); expect(wrapper.find(GlLoadingIcon).exists()).toBe(false); expect(wrapper.find(Stacktrace).exists()).toBe(true); }); it('should not show stacktrace if it does not exist', () => { - store.state.details.loadingStacktrace = false; expect(wrapper.find(GlLoadingIcon).exists()).toBe(false); expect(wrapper.find(Stacktrace).exists()).toBe(false); }); |