Stubbing Chained Functions in JavaScript | Dark Hacker News