Learning Behavior-driven Development with JavaScript

This book is for any JavaScript developer who is interested in producing well-tested code. If you have no prior experience with testing, NodeJS, or any other tool, do not worry, as they will be explained from scratch. If you have already used some of the tools explained, the book can help you to learn additional testing techniques and best practices.

User Reviews

Average Rating: [0]

Submit Your Review

Display Name
Email
Rate

Title

Message


 

jQuery(function(){
jQuery(“.rateit”).rateit();
jQuery(“#wpdm-user-review-form”).submit(function(){
jQuery(“#wpdm-submit-review-button”).attr(“disabled”,”disabled”).html(“ Please Wait…”);
jQuery(this).ajaxSubmit({
success:function(res){
if(!res.match(/ok/)) {
jQuery(“#wpdm-user-review-form”).append(“

“+res+”

“);
jQuery(“#wpdm-submit-review-button”).removeAttr(“disabled”).html(“ Submit Review”);
} else {
jQuery(“#wpdm-submit-review-button”).html(“ Done!”);
jQuery(“#wpdm-user-review-form”).append(“

Thanks for your comment! It will be published after review within a short time

“);
}
}
})
return false;
});
jQuery(“#wpdm-submit-reply-form”).click(function(){
jQuery(“#wpdm-submit-reply-form”).attr(“disabled”,”disabled”).html(“Please Wait…”);
jQuery(“#wpdm-user-reply-form”).ajaxSubmit({
success:function(res){
jQuery(“#wpdm-user-reply-form”).append(“

Thanks for your comment! It will be published after review within a short time

“);
jQuery(“#wpdm-submit-reply-form”).html(“Done!”);
}
})
return false;
});
jQuery(“.reply-comment”).click(function(){
jQuery(“#wpdm-reply-for”).val(this.rel);
});
});

The post Learning Behavior-driven Development with JavaScript appeared first on ZEbook.

Read Source: Learning Behavior-driven Development with JavaScript»

Leave a Reply

Your email address will not be published.