premock (npm): Mock a function that doesn't exist yet, record calls made to it, and then pass those calls to the function when it finally arrives
Keywords: asynchronous|mock