How to test asynchronous data fetching on a React component | Hacker News Reader