summaryrefslogtreecommitdiff
path: root/spec/frontend/pipeline_new/utils/format_refs_spec.js
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-01-18 19:00:14 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2023-01-18 19:00:14 +0000
commit05f0ebba3a2c8ddf39e436f412dc2ab5bf1353b2 (patch)
tree11d0f2a6ec31c7793c184106cedc2ded3d9a2cc5 /spec/frontend/pipeline_new/utils/format_refs_spec.js
parentec73467c23693d0db63a797d10194da9e72a74af (diff)
downloadgitlab-ce-05f0ebba3a2c8ddf39e436f412dc2ab5bf1353b2.tar.gz
Add latest changes from gitlab-org/gitlab@15-8-stable-eev15.8.0-rc42
Diffstat (limited to 'spec/frontend/pipeline_new/utils/format_refs_spec.js')
-rw-r--r--spec/frontend/pipeline_new/utils/format_refs_spec.js21
1 files changed, 0 insertions, 21 deletions
diff --git a/spec/frontend/pipeline_new/utils/format_refs_spec.js b/spec/frontend/pipeline_new/utils/format_refs_spec.js
deleted file mode 100644
index 71190f55c16..00000000000
--- a/spec/frontend/pipeline_new/utils/format_refs_spec.js
+++ /dev/null
@@ -1,21 +0,0 @@
-import { BRANCH_REF_TYPE, TAG_REF_TYPE } from '~/pipeline_new/constants';
-import formatRefs from '~/pipeline_new/utils/format_refs';
-import { mockBranchRefs, mockTagRefs } from '../mock_data';
-
-describe('Format refs util', () => {
- it('formats branch ref correctly', () => {
- expect(formatRefs(mockBranchRefs, BRANCH_REF_TYPE)).toEqual([
- { fullName: 'refs/heads/main', shortName: 'main' },
- { fullName: 'refs/heads/dev', shortName: 'dev' },
- { fullName: 'refs/heads/release', shortName: 'release' },
- ]);
- });
-
- it('formats tag ref correctly', () => {
- expect(formatRefs(mockTagRefs, TAG_REF_TYPE)).toEqual([
- { fullName: 'refs/tags/1.0.0', shortName: '1.0.0' },
- { fullName: 'refs/tags/1.1.0', shortName: '1.1.0' },
- { fullName: 'refs/tags/1.2.0', shortName: '1.2.0' },
- ]);
- });
-});