6 Examples of Hard to Test JavaScript

added by elijahmanor
6/7/2013 1:09:55 PM

7 Kicks, 144 Views

In this post we will be looking at 6 different ways that accidentally make JavaScript code hard to test including… Tightly Coupled Components Private Parts Singletons Anonymous Functions Mixed Concerns New Operators As we introduce each of these concepts we will describe the issue, take a look at some sample code that has the issue, and then refactor the code to alleviate the problem.