diff options
Diffstat (limited to 'spec/frontend/pipeline_new/utils/format_refs_spec.js')
-rw-r--r-- | spec/frontend/pipeline_new/utils/format_refs_spec.js | 21 |
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' }, - ]); - }); -}); |