Commit 06564f9e authored by Bryce Johnson's avatar Bryce Johnson

Update gl_field_error tests for better input filtering.

parent 5f0b7fe4
......@@ -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() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment