Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('sets the pattern to a 10-character pattern with default maxLength', function () {
this.sandbox.spy(RestrictedInput.prototype, 'setPattern');
helpers.createInput('postalCode');
expect(RestrictedInput.prototype.setPattern).to.be.calledWith('{{**********}}');
});
it('sets the pattern to a 10-character pattern with default maxLength', function () {
this.sandbox.spy(RestrictedInput.prototype, 'setPattern');
helpers.createInput('postalCode');
expect(RestrictedInput.prototype.setPattern).to.be.calledWith('{{**********}}');
});