Dependency Injection, Fake Timers and Testing in Johnny-Five
Yesterday marked the end of a several week sprint to improve tests around Johnny-Five. My goal started with fixing an inconstantly failing test, innocent enough. Today I'm proud to say we have cleaner code, a faster suite runtime, and a further decoupling of objects and libraries within the project. I learned a lot about testing in javascript, and I'm finally able to publicly share code I've written with regards to testing. A lot of this I'd love…