Doping in Professional Bicycle Racing
Total time wasted here: 4.5h
Lesson learned
-
Be careful with
Date
in JS. For this project, to setdata-yvalue
we need to useDate.toISOString()
, so thatnew Date(string)
(used in the test bundle) can parse it correctly. This burns me 2h. - If in doubt, troubleshoot the test source code also.
- The test is usually right about whether there is anything wrong in our code. Test messages could be more informative, though.