Sinon with promises