To properly test the use of the timestamp, we follow the dependency inversion
principle again here and a test hook to set an instance of the Clock abstract
class we use for generating the creation timestamp:
Suggested playgrounds
Open Source Your Knowledge: become a Contributor and help others learn.Create New Content