diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-15 18:08:30 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-15 18:08:30 +0300 |
commit | ce97c898865e06644ae9c04d5c3666775b9998cb (patch) | |
tree | 03e9e241b7d713a9fd137be4be841e38297e7acd /spec/frontend/sidebar | |
parent | b50c9d31e395afcab172d16760c5700c8cd5bcae (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/sidebar')
-rw-r--r-- | spec/frontend/sidebar/components/date/sidebar_date_widget_spec.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/frontend/sidebar/components/date/sidebar_date_widget_spec.js b/spec/frontend/sidebar/components/date/sidebar_date_widget_spec.js index 4246cc15ee3..b9c8655d5d8 100644 --- a/spec/frontend/sidebar/components/date/sidebar_date_widget_spec.js +++ b/spec/frontend/sidebar/components/date/sidebar_date_widget_spec.js @@ -22,10 +22,6 @@ describe('Sidebar date Widget', () => { let fakeApollo; const date = '2021-04-15'; - window.gon = { - first_day_of_week: 1, - }; - const findEditableItem = () => wrapper.findComponent(SidebarEditableItem); const findPopoverIcon = () => wrapper.find('[data-testid="inherit-date-popover"]'); const findDatePicker = () => wrapper.findComponent(GlDatepicker); @@ -61,6 +57,10 @@ describe('Sidebar date Widget', () => { }); }; + beforeEach(() => { + window.gon.first_day_of_week = 1; + }); + afterEach(() => { fakeApollo = null; }); |