A couple of weeks ago I made the decision to only write code that turns a unit test from failing to passing. This is also known as BDD (Behaviour Driven Development). This is a big step towards becoming the ninja programmer I want to be. I'll leave the philosophical discussion out of this post, and rather use the time we have together to share what I found to be a pretty good BDD solution for writing JavaScript.
Visit our blog for the full article: bigbangtechnology.com/post/writing_tests_first_in_fireunit