Doubling at the Boundary
Replace at the edge, not in the middle. Double the HTTP call, not the three functions between your view and it. Doubling deep inside means your test no longer exercises the code between, which is where the bugs are.
The practical version: have one function that makes the request, and double that. This is also why the APIs & Datasets course had you extract the request into its own function.
Mark this lesson complete
Signed in, your progress follows you to every device.