Skip to content

Instantly share code, notes, and snippets.

View kccrs's full-sized avatar
💭
just workin and stuff

Casey Cross kccrs

💭
just workin and stuff
  • Inspirato
  • Denver, Colorado
View GitHub Profile
@kccrs
kccrs / .md
Created August 22, 2016 23:52 — forked from joshuajhun/.md
Testing the Dom

Test Driven Development with WebDriver.io

##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) {