Re:How to Test Private Functions in JS Modules
by joebadmo on Tuesday July 29, 2014 @08:22PM
(#8105770)
I think I just mean that a testable unit is a good heuristic for when a piece of code should be pulled out into a separate module. Put another way: when there's enough functionality/complexity in a given function that it needs to be tested independent of the public methods that use it, it's modularizable.
This probably isn't categorically true, but it's served me pretty well.
This probably isn't categorically true, but it's served me pretty well.