Extends Chai with assertions for the Sinon.JS mocking framework. - chaijs/sinon-chai
Most developers seem to agree that testing is good, but developers frequently disagree about how to test. In this article, I’ll break down…
Getting started with test driven development (TDD) can be daunting. It sounds tedious, boring and hard. There’s also a confusing array of frameworks and libraries out there. Some work on the server; some work in the browser; some do both… it can be hard to know where to start. This is part one of a three-part series outlining my personal approach to JavaScript TDD.
Shane Tomlinson presents a sample application that contains several common anti-patterns and how these can be refactored to be more testable