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:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-10-21 10:08:36 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-10-21 10:08:36 +0300
commit48aff82709769b098321c738f3444b9bdaa694c6 (patch)
treee00c7c43e2d9b603a5a6af576b1685e400410dee /spec/frontend/repository/utils
parent879f5329ee916a948223f8f43d77fba4da6cd028 (diff)
Add latest changes from gitlab-org/gitlab@13-5-stable-eev13.5.0-rc42
Diffstat (limited to 'spec/frontend/repository/utils')
-rw-r--r--spec/frontend/repository/utils/icon_spec.js23
1 files changed, 0 insertions, 23 deletions
diff --git a/spec/frontend/repository/utils/icon_spec.js b/spec/frontend/repository/utils/icon_spec.js
deleted file mode 100644
index 3d84705f7ea..00000000000
--- a/spec/frontend/repository/utils/icon_spec.js
+++ /dev/null
@@ -1,23 +0,0 @@
-import { getIconName } from '~/repository/utils/icon';
-
-describe('getIconName', () => {
- // Tests the returning font awesome icon name
- // We only test one for each file type to save testing a lot of different
- // file types
- it.each`
- type | path | icon
- ${'tree'} | ${''} | ${'folder'}
- ${'commit'} | ${''} | ${'archive'}
- ${'file'} | ${'test.pdf'} | ${'file-pdf-o'}
- ${'file'} | ${'test.jpg'} | ${'file-image-o'}
- ${'file'} | ${'test.zip'} | ${'file-archive-o'}
- ${'file'} | ${'test.mp3'} | ${'file-audio-o'}
- ${'file'} | ${'test.flv'} | ${'file-video-o'}
- ${'file'} | ${'test.dotx'} | ${'file-word-o'}
- ${'file'} | ${'test.xlsb'} | ${'file-excel-o'}
- ${'file'} | ${'test.ppam'} | ${'file-powerpoint-o'}
- ${'file'} | ${'test.js'} | ${'file-text-o'}
- `('returns $icon for $type with path $path', ({ type, path, icon }) => {
- expect(getIconName(type, path)).toEqual(icon);
- });
-});