Wrapping Up
Well, folks, you've had a whirlwind tour of testing JavaScript and CoffeeScript code by using Mocha and Chai (and a few friends along the way). There was a lot to cover, and we covered it fast, but I hope that you got a few things out of it.
You've seen that it's relatively painless to test a "complex" application. I chose to show you excerpts from a real application, rather than using contrived examples, to help that point sink in. I always prefer to see code in action, and nothing is more "in action" than a Backbone app.
Happy testing, everyone!
P.S. If you struggled with the CoffeeScript in this article, I know a great book that can help you learn it: Programming in CoffeeScript. Enjoy!