diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2018-08-07 15:53:39 +0300 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2018-08-07 16:05:53 +0300 |
commit | 0f0e70bc13a680efb438c0e6b6007c3f5fc98eca (patch) | |
tree | 9e39f4bc19064265b0bbca410cba73d000b64891 /spec/javascripts/reports | |
parent | d8fc401229367a9d46f3282cb39ff593e51969dd (diff) |
Reset error state in success mutation to handle error-success state
Diffstat (limited to 'spec/javascripts/reports')
-rw-r--r-- | spec/javascripts/reports/components/grouped_test_reports_app_spec.js | 2 | ||||
-rw-r--r-- | spec/javascripts/reports/store/mutations_spec.js | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/spec/javascripts/reports/components/grouped_test_reports_app_spec.js b/spec/javascripts/reports/components/grouped_test_reports_app_spec.js index c40227b74df..333cefe5f8a 100644 --- a/spec/javascripts/reports/components/grouped_test_reports_app_spec.js +++ b/spec/javascripts/reports/components/grouped_test_reports_app_spec.js @@ -154,7 +154,7 @@ describe('Grouped Test Reports App', () => { expect(vm.$el.querySelector('.js-mr-code-resolved-issues').textContent).toContain( resolvedFailures.suites[0].resolved_failures[1].name, ); - done() + done(); }, 0); }); }); diff --git a/spec/javascripts/reports/store/mutations_spec.js b/spec/javascripts/reports/store/mutations_spec.js index 8f99d2675a5..7d19b16efb9 100644 --- a/spec/javascripts/reports/store/mutations_spec.js +++ b/spec/javascripts/reports/store/mutations_spec.js @@ -72,6 +72,10 @@ describe('Reports Store Mutations', () => { expect(stateCopy.isLoading).toEqual(false); }); + it('should reset hasError', () => { + expect(stateCopy.hasError).toEqual(false); + }); + it('should set summary counts', () => { expect(stateCopy.summary.total).toEqual(mockedResponse.summary.total); expect(stateCopy.summary.resolved).toEqual(mockedResponse.summary.resolved); |