Stubbing Chained Functions in JavaScript
arvindnaidu.substack.com