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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -