In the last chapter, we figured out how to test the DOM. Now it’s time to start test-driving our drawing application. We code quick experiment to figure out how to draw a line on the screen, then consider how to test it. Would a mock be appropriate? Or should we test it for real? We discuss the options and start on our solution.