Skip to content

Instantly share code, notes, and snippets.

@anitagraham
Last active October 22, 2019 08:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anitagraham/eefc6ec6c09f74bab52aa90a987ef31a to your computer and use it in GitHub Desktop.
Save anitagraham/eefc6ec6c09f74bab52aa90a987ef31a to your computer and use it in GitHub Desktop.
TDD corrections
  • package.json doesn't have the watchAll switch appended to it, as the preceding paragraph claims.
  • Below the heading "Continue the Cycle" the code for validator.test.js has two problems.
    • There are stray }; on lines 4 and 10
    • The description for the second test 'should fail an object that meets a criteria' should be "should fail an object that doesn't meet a criteria". This description continues all the way to the end of the article.

What a great sentence the above would be if we removed all the quotes

It is at this point that I got irritated... but I continued to the end of the article and learned more about TDD.

Thanks and sorry for being a grump.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment