TE
科技回声
首页
24小时热榜
最新
最佳
问答
展示
工作
中文
GitHub
Twitter
首页
Show HN: Testing Private Functions in JavaScript
5 点
作者
arvindrajnaidu
大约 5 年前
1 comment
yjhoney
大约 5 年前
Collapse
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.
评论 #22825557 未加载