mocking-functions-that-return-promises