summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2018-08-07 13:53:39 +0100
committerFilipa Lacerda <filipa@gitlab.com>2018-08-07 14:05:53 +0100
commit0f0e70bc13a680efb438c0e6b6007c3f5fc98eca (patch)
tree9e39f4bc19064265b0bbca410cba73d000b64891 /spec
parentd8fc401229367a9d46f3282cb39ff593e51969dd (diff)
downloadgitlab-ce-0f0e70bc13a680efb438c0e6b6007c3f5fc98eca.tar.gz
Reset error state in success mutation to handle error-success state
Diffstat (limited to 'spec')
-rw-r--r--spec/javascripts/reports/components/grouped_test_reports_app_spec.js2
-rw-r--r--spec/javascripts/reports/store/mutations_spec.js4
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);