diff options
Diffstat (limited to 'spec/frontend/pipeline_new/utils/filter_variables_spec.js')
-rw-r--r-- | spec/frontend/pipeline_new/utils/filter_variables_spec.js | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/spec/frontend/pipeline_new/utils/filter_variables_spec.js b/spec/frontend/pipeline_new/utils/filter_variables_spec.js deleted file mode 100644 index 42bc6244456..00000000000 --- a/spec/frontend/pipeline_new/utils/filter_variables_spec.js +++ /dev/null @@ -1,21 +0,0 @@ -import filterVariables from '~/pipeline_new/utils/filter_variables'; -import { mockVariables } from '../mock_data'; - -describe('Filter variables utility function', () => { - it('filters variables that do not contain a key', () => { - const expectedVaraibles = [ - { - variable_type: 'env_var', - key: 'var_without_value', - secret_value: '', - }, - { - variable_type: 'env_var', - key: 'var_with_value', - secret_value: 'test_value', - }, - ]; - - expect(filterVariables(mockVariables)).toEqual(expectedVaraibles); - }); -}); |