Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('should ignore default debounce when using "blur" or "submit"', () => {
const { field } = renderComponent({
key: 'foo',
type: 'input',
modelOptions: {
debounce: { default: 5 },
updateOn: 'blur',
},
});
const [spy, subscription] = createFieldChangesSpy(field);
field.formControl.setValue('15');
expect(spy).toHaveBeenCalled();
subscription.unsubscribe();
});