diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-10-21 03:10:26 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-10-21 03:10:26 +0300 |
commit | 3f9ae4674edd5b23ec9cd5b2bbb4a0caae5eec74 (patch) | |
tree | 3d8e65627e0fa03b967f11035b23133df0a860e7 /spec/frontend/vue_shared | |
parent | 40e8ba2fc8ac6c3695d7f297ff4143518615a3f9 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/vue_shared')
-rw-r--r-- | spec/frontend/vue_shared/alert_details/alert_details_spec.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/frontend/vue_shared/alert_details/alert_details_spec.js b/spec/frontend/vue_shared/alert_details/alert_details_spec.js index d309432bc63..3bc191d988f 100644 --- a/spec/frontend/vue_shared/alert_details/alert_details_spec.js +++ b/spec/frontend/vue_shared/alert_details/alert_details_spec.js @@ -30,7 +30,7 @@ describe('AlertDetails', () => { const projectPath = 'root/alerts'; const projectIssuesPath = 'root/alerts/-/issues'; const projectId = '1'; - const $router = { replace: jest.fn() }; + const $router = { push: jest.fn() }; function mountComponent({ data, @@ -352,7 +352,7 @@ describe('AlertDetails', () => { // setData usage is discouraged. See https://gitlab.com/groups/gitlab-org/-/epics/7330 for details // eslint-disable-next-line no-restricted-syntax wrapper.setData({ currentTabIndex: index }); - expect($router.replace).toHaveBeenCalledWith({ name: 'tab', params: { tabId } }); + expect($router.push).toHaveBeenCalledWith({ name: 'tab', params: { tabId } }); }); }); }); |