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:
Diffstat (limited to 'spec/frontend/jira_connect/index_spec.js')
-rw-r--r--spec/frontend/jira_connect/index_spec.js24
1 files changed, 0 insertions, 24 deletions
diff --git a/spec/frontend/jira_connect/index_spec.js b/spec/frontend/jira_connect/index_spec.js
deleted file mode 100644
index 0161cfa0273..00000000000
--- a/spec/frontend/jira_connect/index_spec.js
+++ /dev/null
@@ -1,24 +0,0 @@
-import { initJiraConnect } from '~/jira_connect';
-
-jest.mock('~/jira_connect/utils', () => ({
- getLocation: jest.fn().mockResolvedValue('test/location'),
-}));
-
-describe('initJiraConnect', () => {
- beforeEach(async () => {
- setFixtures(`
- <a class="js-jira-connect-sign-in" href="https://gitlab.com">Sign In</a>
- <a class="js-jira-connect-sign-in" href="https://gitlab.com">Another Sign In</a>
- `);
-
- await initJiraConnect();
- });
-
- describe('Sign in links', () => {
- it('have `return_to` query parameter', () => {
- Array.from(document.querySelectorAll('.js-jira-connect-sign-in')).forEach((el) => {
- expect(el.href).toContain('return_to=test/location');
- });
- });
- });
-});