Notes On Writing Testable JavaScript Vol 1
When writing JavaScript, I am a big fan of minimizing functionality and variables exposed publicly, which we all know to be good practice. However, this leads to anonymous functions and functions hidden within closures. So.... How Do You Test That? How exactly do you test private methods in JavaScript? To…