diff options
author | Bryce Johnson <bryce@gitlab.com> | 2016-10-20 12:47:32 +0200 |
---|---|---|
committer | Bryce Johnson <bryce@gitlab.com> | 2016-10-20 12:47:32 +0200 |
commit | 06564f9e049417087fa53cf8ec15c22ec65724d5 (patch) | |
tree | 6686d8203a4462d46c741f3a28df898ceca2c3d3 /spec | |
parent | 5f0b7fe429d75de2dbcfef142d2389bf99d199ec (diff) | |
download | gitlab-ce-06564f9e049417087fa53cf8ec15c22ec65724d5.tar.gz |
Update gl_field_error tests for better input filtering.scope-input-errors
Diffstat (limited to 'spec')
-rw-r--r-- | spec/javascripts/gl_field_errors_spec.js.es6 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/javascripts/gl_field_errors_spec.js.es6 b/spec/javascripts/gl_field_errors_spec.js.es6 index 36feb2b2aa5..da9259edd78 100644 --- a/spec/javascripts/gl_field_errors_spec.js.es6 +++ b/spec/javascripts/gl_field_errors_spec.js.es6 @@ -11,12 +11,12 @@ this.fieldErrors = new global.GlFieldErrors($form); }); - it('should properly initialize the form', function() { + it('should select the correct input elements', function() { expect(this.$form).toBeDefined(); expect(this.$form.length).toBe(1); expect(this.fieldErrors).toBeDefined(); const inputs = this.fieldErrors.state.inputs; - expect(inputs.length).toBe(5); + expect(inputs.length).toBe(4); }); it('should ignore elements with custom error handling', function() { |