Synchronous Promise stubbing for Sinon.JS
A chai matcher to assert the return value of a function is a thenable.