Latest stories

HHow to stub promises using Sinon.JS

2016-02-291 Min Read — In code

Promises are a great way of doing async programming. But testing with promises can be a bit cumbersome, even with the use of the arrow functions syntax. Recently I've found a small and nice package to…

AAsync await with ES6/Babel and TypeScript

2016-02-176 Min Read — In code

Promises are an excellent way of making asynchronous calls, and they're most definitely an improvement over working with only callbacks. Take the following example, calling a URL that returns a movie…