I\'m attempting to test what is drawn to a canvas in React. To make the code that does the actual testing more testable I\'ve split out the drawing functions into their own