unit testing - Using jasmine and chutzpah to test validator jquery -
how can test validation method using chutzpah , 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; });
Comments
Post a Comment