Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
Show HN: Testing Private Functions in JavaScript
(opens in new tab)
(github.com)
5 points
arvindrajnaidu
6y ago
2 comments
Save
Share
2 comments
2 comments · 1 top-level
top
newest
oldest
yjhoney
6y ago
· 1 in thread
very interesting idea. I've come across projects where functions are exported for the only reason of testing it. This library makes it so that your helper functions get to stay privately scoped inside the file.
arvindrajnaidu
OP
6y ago
With them underscores?
j
/
k
navigate · click thread line to collapse