Using jasmine and chutzpah to test validator jquery

589 Views Asked by At

How can i test this validation method by using chutzpah and jasmine??

 jQuery.validator.addMethod('minvalidator',
                function (value, element, params) {
                    if (value.length == 0 && params.mandatory !== "True")
                        return true;

                    if (value.length < params.min)
                        return false;

                    return true;
                });
0

There are 0 best solutions below