How to use the availity-reactstrap-validation.AvCheckbox 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__ / AvCheckbox.spec.js View on Github external
isTouched: () => touched,
            isBad: () => bad,
            setDirty: sinon.spy(),
            setTouched: sinon.spy(),
            setBad: sinon.spy(),
            register: sinon.spy(),
            unregister: sinon.spy(),
            validate: sinon.spy(),
            getValidationEvent: () => 'formCtrlValidationEvent',
            validation: {},
            parent: null,

      component = new AvCheckbox(props);
      component.context = options.context;