diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-07-27 12:10:42 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-07-27 12:10:42 +0300 |
commit | 5add82515889cf332b65bbf59394079222dc66b3 (patch) | |
tree | 95c6e3092407fb86a39dab4ffafc930a6fb95bec /spec/frontend | |
parent | 1d9c7ebdadc0c011b997bc8e0032281b939de4e7 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend')
-rw-r--r-- | spec/frontend/pipelines/pipeline_graph/utils_spec.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/frontend/pipelines/pipeline_graph/utils_spec.js b/spec/frontend/pipelines/pipeline_graph/utils_spec.js index 41b020189d0..96b18fcf96f 100644 --- a/spec/frontend/pipelines/pipeline_graph/utils_spec.js +++ b/spec/frontend/pipelines/pipeline_graph/utils_spec.js @@ -1,5 +1,5 @@ import { createJobsHash, generateJobNeedsDict, getPipelineDefaultTab } from '~/pipelines/utils'; -import { validPipelineTabNames } from '~/pipelines/constants'; +import { validPipelineTabNames, pipelineTabName } from '~/pipelines/constants'; describe('utils functions', () => { const jobName1 = 'build_1'; @@ -173,8 +173,8 @@ describe('utils functions', () => { describe('getPipelineDefaultTab', () => { const baseUrl = 'http://gitlab.com/user/multi-projects-small/-/pipelines/332/'; - it('returns null if there is only the base url', () => { - expect(getPipelineDefaultTab(baseUrl)).toBe(null); + it('returns pipeline tab name if there is only the base url', () => { + expect(getPipelineDefaultTab(baseUrl)).toBe(pipelineTabName); }); it('returns null if there was no valid last url part', () => { |