#JavaScript Unit Testing Tips and Tricks#
###Please add your your tips and tricks for unit testing JavaScript as comments to this gist. I'll pull them into the main text and credit your contribution.###
- Create/use snippits to scaffold testing methods ( i.e. if you are using BDD scaffold
describe
andit
methods) - Write tests with the same care as production code
- DRY. Factor out repeated code into methods