diff options
Diffstat (limited to 'spec/frontend/ci/ci_variable_list/utils_spec.js')
-rw-r--r-- | spec/frontend/ci/ci_variable_list/utils_spec.js | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/spec/frontend/ci/ci_variable_list/utils_spec.js b/spec/frontend/ci/ci_variable_list/utils_spec.js deleted file mode 100644 index fbcf0e7c5a5..00000000000 --- a/spec/frontend/ci/ci_variable_list/utils_spec.js +++ /dev/null @@ -1,27 +0,0 @@ -import { convertEnvironmentScope, mapEnvironmentNames } from '~/ci/ci_variable_list/utils'; -import { allEnvironments } from '~/ci/ci_variable_list/constants'; - -describe('utils', () => { - describe('convertEnvironmentScope', () => { - it('converts the * to the `All environments` text', () => { - expect(convertEnvironmentScope('*')).toBe(allEnvironments.text); - }); - - it('returns the environment as is if not the *', () => { - expect(convertEnvironmentScope('prod')).toBe('prod'); - }); - }); - - describe('mapEnvironmentNames', () => { - const envName = 'dev'; - const envName2 = 'prod'; - - const nodes = [ - { name: envName, otherProp: {} }, - { name: envName2, otherProp: {} }, - ]; - it('flatten a nodes array with only their names', () => { - expect(mapEnvironmentNames(nodes)).toEqual([envName, envName2]); - }); - }); -}); |