Hacker News new | ask | show | jobs
by nrook 448 days ago
Run a fake version of the API server, and then connect the real client to it. It is usually a mistake to make the "unit" of your unit test too small.
1 comments

In this case, API does not refer to client/server. The API of the aforementioned static class is the set of its methods and their signatures.