summaryrefslogtreecommitdiff
path: root/spec/javascripts/ci_variable_list/native_form_variable_list_spec.js
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2018-10-26 00:45:03 +0000
committerMike Greiling <mike@pixelcog.com>2018-10-26 00:45:03 +0000
commit0efbc126d080892214d312a3ae2549f1fc341cb6 (patch)
treeb7131288bcbc3c5b0160ad55ed4b95523ce71c12 /spec/javascripts/ci_variable_list/native_form_variable_list_spec.js
parent46e3ad4b948dedf67245708493ee17c4429f8bf3 (diff)
parent679c0048a8f679aad456c02e30486150bbd0d93d (diff)
downloadgitlab-ce-0efbc126d080892214d312a3ae2549f1fc341cb6.tar.gz
Merge branch 'master' into 'prettify-all-the-things-4'prettify-all-the-things-4
# Conflicts: # app/assets/javascripts/sidebar/components/time_tracking/collapsed_state.vue
Diffstat (limited to 'spec/javascripts/ci_variable_list/native_form_variable_list_spec.js')
-rw-r--r--spec/javascripts/ci_variable_list/native_form_variable_list_spec.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/spec/javascripts/ci_variable_list/native_form_variable_list_spec.js b/spec/javascripts/ci_variable_list/native_form_variable_list_spec.js
index 94a0c999d66..997d0d54d79 100644
--- a/spec/javascripts/ci_variable_list/native_form_variable_list_spec.js
+++ b/spec/javascripts/ci_variable_list/native_form_variable_list_spec.js
@@ -19,8 +19,14 @@ describe('NativeFormVariableList', () => {
describe('onFormSubmit', () => {
it('should clear out the `name` attribute on the inputs for the last empty row on form submission (avoid BE validation)', () => {
const $row = $wrapper.find('.js-row');
- expect($row.find('.js-ci-variable-input-key').attr('name')).toBe('schedule[variables_attributes][][key]');
- expect($row.find('.js-ci-variable-input-value').attr('name')).toBe('schedule[variables_attributes][][secret_value]');
+
+ expect($row.find('.js-ci-variable-input-key').attr('name')).toBe(
+ 'schedule[variables_attributes][][key]',
+ );
+
+ expect($row.find('.js-ci-variable-input-value').attr('name')).toBe(
+ 'schedule[variables_attributes][][secret_value]',
+ );
$wrapper.closest('form').trigger('trigger-submit');