JavaScript BDD Objectives

In this section, we will be practicing behavior driven development in JavaScript using Mocha and Chai as our testing tools. At the end of the week, you should be able to:

  • write thorough specs that test the behaviors you have identified
  • build Javascript functions that use branching and looping
  • create HTML pages that use jQuery to manipulate and traverse the DOM

The code review at the end of the week will be reviewed for the following objectives:

  • Complete spec coverage
  • All specs are passing (indicating that your Javascript function(s) * are working as designed if you have thorough specs in place)
  • Program logic is separate from user interface logic
  • Variable names are descriptive and use lower camel case (likeThis)
  • Code has proper indentation and spacing