##Learning goals
- Understand the benefits of testing
- Utilize WebDriver.io to test changes on the dom
- Utilize Mocha's assertion library to write effective tests.
- Understand Red, Green, Refactor
##So Why testing?
Step One: Watch Mary Rose Cook Live Codes Space Invaders from Front-Trends. (The second worst conference name ever?)
Step Two: Fork this gist.
Step Three: Respond to this question in your fork: What is one approach you can take from this Mary's code and implement in your project?
Step Four: Totally Optional: take a look at some of the other forks and comment if the spirit moves you.
// {} object literal | |
// "" string literal | |
// 23 number literal | |
// [] array literal | |
function makeBurger(pattyType) { | |
return { | |
pattyType: pattyType, | |
toppings: [], | |
addTopping: function (topping) { |