diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-11-19 08:27:35 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-11-19 08:27:35 +0000 |
commit | 7e9c479f7de77702622631cff2628a9c8dcbc627 (patch) | |
tree | c8f718a08e110ad7e1894510980d2155a6549197 /spec/frontend/pipelines/graph/linked_pipeline_spec.js | |
parent | e852b0ae16db4052c1c567d9efa4facc81146e88 (diff) | |
download | gitlab-ce-7e9c479f7de77702622631cff2628a9c8dcbc627.tar.gz |
Add latest changes from gitlab-org/gitlab@13-6-stable-eev13.6.0-rc42
Diffstat (limited to 'spec/frontend/pipelines/graph/linked_pipeline_spec.js')
-rw-r--r-- | spec/frontend/pipelines/graph/linked_pipeline_spec.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/spec/frontend/pipelines/graph/linked_pipeline_spec.js b/spec/frontend/pipelines/graph/linked_pipeline_spec.js index 8e65f0d4f71..67986ca7739 100644 --- a/spec/frontend/pipelines/graph/linked_pipeline_spec.js +++ b/spec/frontend/pipelines/graph/linked_pipeline_spec.js @@ -2,11 +2,10 @@ import { mount } from '@vue/test-utils'; import { GlButton, GlLoadingIcon } from '@gitlab/ui'; import LinkedPipelineComponent from '~/pipelines/components/graph/linked_pipeline.vue'; import CiStatus from '~/vue_shared/components/ci_icon.vue'; - import mockData from './linked_pipelines_mock_data'; +import { UPSTREAM, DOWNSTREAM } from '~/pipelines/components/graph/constants'; const mockPipeline = mockData.triggered[0]; - const validTriggeredPipelineId = mockPipeline.project.id; const invalidTriggeredPipelineId = mockPipeline.project.id + 5; @@ -40,6 +39,7 @@ describe('Linked pipeline', () => { pipeline: mockPipeline, projectId: invalidTriggeredPipelineId, columnTitle: 'Downstream', + type: DOWNSTREAM, }; beforeEach(() => { @@ -104,11 +104,13 @@ describe('Linked pipeline', () => { pipeline: mockPipeline, projectId: validTriggeredPipelineId, columnTitle: 'Downstream', + type: DOWNSTREAM, }; const upstreamProps = { ...downstreamProps, columnTitle: 'Upstream', + type: UPSTREAM, }; it('parent/child label container should exist', () => { @@ -182,6 +184,7 @@ describe('Linked pipeline', () => { pipeline: { ...mockPipeline, isLoading: true }, projectId: invalidTriggeredPipelineId, columnTitle: 'Downstream', + type: DOWNSTREAM, }; beforeEach(() => { @@ -198,6 +201,7 @@ describe('Linked pipeline', () => { pipeline: mockPipeline, projectId: validTriggeredPipelineId, columnTitle: 'Downstream', + type: DOWNSTREAM, }; beforeEach(() => { |