Date mocking for JavaScript