Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Side Effects vs. Promises. Parent comment
Some people would insist that the closure is a mock, but otherwise this is correct, using closures in this way does help isolate one's tests.
There are no comments on this comment yet.
Some people would insist that the closure is a mock, but otherwise this is correct, using closures in this way does help isolate one's tests.