How to use the availity-reactstrap-validation.AvBaseInput function in availity-reactstrap-validation

To help you get started, we’ve selected a few availity-reactstrap-validation examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Availity / availity-reactstrap-validation / __test__ / AvBaseInput.spec.js View on Github external
isDirty: () => dirty,
        isTouched: () => touched,
        isBad: () => bad,
        isDisabled: () => disabled,
        isReadOnly: () => readOnly,
        setDirty: sinon.spy(),
        setTouched: sinon.spy(),
        setBad: sinon.spy(),
        register: sinon.spy(),
        unregister: sinon.spy(),
        validate: sinon.spy(),
        getValidationEvent: () => 'formCtrlValidationEvent',
        parent: null,
      },
    };
    this.component = new AvBaseInput(this.props);
    this.component.context = this.context;
    this.setStateSpy = this.component.setState = sinon.spy();
  });