jeudi 2 juin 2016

Mocha DOM Manipulation for Backbone Application

How to implement mocha unit test case for backbone application which involves DOM manipulation also how to write mocha test case for events?

$.each(studentList, function(index, element) {
if($("#"+element).val()!=undefined && $("#"+element).val()!="") {
$("#"+element).attr("disabled","true");
$("#"+element+"-added").attr("disabled","true");
}
});

Aucun commentaire:

Enregistrer un commentaire