summaryrefslogtreecommitdiff
path: root/spec/frontend/operation_settings/store
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-06-18 11:18:50 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-06-18 11:18:50 +0000
commit8c7f4e9d5f36cff46365a7f8c4b9c21578c1e781 (patch)
treea77e7fe7a93de11213032ed4ab1f33a3db51b738 /spec/frontend/operation_settings/store
parent00b35af3db1abfe813a778f643dad221aad51fca (diff)
downloadgitlab-ce-8c7f4e9d5f36cff46365a7f8c4b9c21578c1e781.tar.gz
Add latest changes from gitlab-org/gitlab@13-1-stable-ee
Diffstat (limited to 'spec/frontend/operation_settings/store')
-rw-r--r--spec/frontend/operation_settings/store/mutations_spec.js12
1 files changed, 11 insertions, 1 deletions
diff --git a/spec/frontend/operation_settings/store/mutations_spec.js b/spec/frontend/operation_settings/store/mutations_spec.js
index 1854142c89a..88eb66095ad 100644
--- a/spec/frontend/operation_settings/store/mutations_spec.js
+++ b/spec/frontend/operation_settings/store/mutations_spec.js
@@ -1,5 +1,6 @@
import mutations from '~/operation_settings/store/mutations';
import createState from '~/operation_settings/store/state';
+import { timezones } from '~/monitoring/format_date';
describe('operation settings mutations', () => {
let localState;
@@ -13,7 +14,16 @@ describe('operation settings mutations', () => {
const mockUrl = 'mockUrl';
mutations.SET_EXTERNAL_DASHBOARD_URL(localState, mockUrl);
- expect(localState.externalDashboardUrl).toBe(mockUrl);
+ expect(localState.externalDashboard.url).toBe(mockUrl);
+ });
+ });
+
+ describe('SET_DASHBOARD_TIMEZONE', () => {
+ it('sets dashboardTimezoneSetting', () => {
+ mutations.SET_DASHBOARD_TIMEZONE(localState, timezones.LOCAL);
+
+ expect(localState.dashboardTimezone.selected).not.toBeUndefined();
+ expect(localState.dashboardTimezone.selected).toBe(timezones.LOCAL);
});
});
});