-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Description
I have some production code that does Date.parse explicitly. When I was running my test suite using timemachine, I received the following error:
Failure/Error: TypeError: undefined is not a constructor (evaluating 'Date.parse(currentDateTime)') in http://127.0.0.1:50456/assets/services/social_hub/social_blast_validator.js?body=1?body=1 (line 244)
I propose just adding an additional method to your mock object that is the original parse function.
Note: A workaround for me was to convert my Date.parse() commands to new Date() commands.
jmchaves, cardamo, Scong, simenandresen, davidemerritt and 2 more
Metadata
Metadata
Assignees
Labels
No labels