Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Writing Good Unit Tests; Don’t Mock Database Connections.
We don’t need to write a test that tests this function as a whole, we can test the parts we care about independently.