summaryrefslogtreecommitdiff
path: root/spec/frontend/grafana_integration/store/mutations_spec.js
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-11-07 06:06:12 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2019-11-07 06:06:12 +0000
commit2a87ae2e368ec6fbb1e75b89bc092ba2fd7eb913 (patch)
tree4d6b995e3292562627ddeeacbc5b5eba0ce64032 /spec/frontend/grafana_integration/store/mutations_spec.js
parenteb0d9e20c5a81b0a556308ae3fc8015fcc3c9621 (diff)
downloadgitlab-ce-2a87ae2e368ec6fbb1e75b89bc092ba2fd7eb913.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/grafana_integration/store/mutations_spec.js')
-rw-r--r--spec/frontend/grafana_integration/store/mutations_spec.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/frontend/grafana_integration/store/mutations_spec.js b/spec/frontend/grafana_integration/store/mutations_spec.js
index d9b8c258623..18e87394189 100644
--- a/spec/frontend/grafana_integration/store/mutations_spec.js
+++ b/spec/frontend/grafana_integration/store/mutations_spec.js
@@ -25,4 +25,11 @@ describe('grafana integration mutations', () => {
expect(localState.grafanaToken).toBe(mockToken);
});
});
+ describe('SET_GRAFANA_ENABLED', () => {
+ it('updates grafanaEnabled for integration', () => {
+ mutations.SET_GRAFANA_ENABLED(localState, true);
+
+ expect(localState.grafanaEnabled).toBe(true);
+ });
+ });
});