Node/JavaScript Testing with Mocha, Sinon, Rewire and Promises making my life a misery
I haven’t blogged for ages, mostly through laziness. The last four working days I’ve been working on a particular problem which I thought was worthy of a write up. I’ve been retro-fitting unit tests to some of my old code, for a number of reasons – mainly the fact that you run the risk of