Keeping Your Units Testable in JavaScript
Too Long; Didn't Read
Unit tests are a challenging topic, with many interconnected aspects that make it difficult for beginners. This article provides a simple example that shows that none of those issues has to affect your code. A good unit can be defined as one that matches its purpose, considers inputs, outputs and possible states, and fits well with other units in your application.