Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-04-26 00:16:20 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-04-26 00:16:20 +0300
commit190734a48c1030f2059035775589ee60f26bc7ca (patch)
tree59766e0eea48c75f169098bc7142194d8960f209 /spec/frontend/vue_shared
parent1e3f5ab634699e9d50779f05d2ae8dfc8a3ab9b3 (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/router_spec.js35
1 files changed, 0 insertions, 35 deletions
diff --git a/spec/frontend/vue_shared/alert_details/router_spec.js b/spec/frontend/vue_shared/alert_details/router_spec.js
deleted file mode 100644
index e3efc104862..00000000000
--- a/spec/frontend/vue_shared/alert_details/router_spec.js
+++ /dev/null
@@ -1,35 +0,0 @@
-import createRouter from '~/vue_shared/alert_details/router';
-import setWindowLocation from 'helpers/set_window_location_helper';
-
-const BASE_PATH = '/-/alert_management/1/details';
-const EMPTY_HASH = '';
-const NOOP = () => {};
-
-describe('AlertDetails router', () => {
- const originalLocation = window.location.href;
- let router;
-
- beforeEach(() => {
- setWindowLocation(originalLocation);
- router = createRouter(BASE_PATH);
- });
-
- describe('redirects hash route mode URLs to history route mode', () => {
- it.each`
- hashPath | historyPath
- ${'/#/overview'} | ${'/overview'}
- ${'#/overview'} | ${'/overview'}
- ${'/#/'} | ${'/'}
- ${'#/'} | ${'/'}
- ${'/#'} | ${'/'}
- ${'#'} | ${'/'}
- ${'/'} | ${'/'}
- ${'/overview'} | ${'/overview'}
- `('should redirect "$hashPath" to "$historyPath"', ({ hashPath, historyPath }) => {
- router.push(hashPath, NOOP);
-
- expect(window.location.hash).toBe(EMPTY_HASH);
- expect(window.location.pathname).toBe(BASE_PATH + historyPath);
- });
- });
-});