CH73 / E541|Async/Await|Mon, 14 Aug ’17
Better Utility
Most of our HttpServer tests rely on a single large utility function: httpGet(). This function starts our production server, gets a page from it, runs a callback, then shuts down the server. In this episode, we use async/await to make the function smaller, simpler, and easier to use.