Date based tests
When writing tests for code that is based on a date, try to have your test cases use dates in the past. This makes it more likely your test will be more consistent as we progress into the future.
Written by Derek Gallo
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#