How to unit-test a private (non-exported) function in JavaScript | Hacker News Reader