stub-promise-function (npm): A test utility that lets you stub and control promises for testing purposes
Keywords: promise|test|unit-testing|mock|fake