Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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();
});