-
Notifications
You must be signed in to change notification settings - Fork 27
timecop causes jquery-ui-datepicker to not work until timecop is uninstalled #24
Comments
Can you link to any places where Have you tried using Sinon's fake clock support? |
Haven't tried Sinon -- we wanted to use Timecop on both the server and front-end JS side. We're using Timecop within Selenium. The code within the jquery datepicker does indeed use setTimeout in one place, here:
|
Timecop doesn't modify the global Sinon's date faking does and we've had good results with it in front-end testing (both in the browser and via PhantomJS). There is a sinon npm module. I'd give it a shot. I'd be happy to take a pull request to fix this. I haven't actually abandoned this project, but I'm leaning towards deprecating it in favor of Sinon. |
Ran into this conflict on our project. We're using the JQuery UI datepicker for a calendar control. After
Timecop.install()
is called, the datepicker will no longer "show". As soon asTimecop.uninstall()
is called, the seemingly-batched show commands to the datepicker finally get sent and the calendar control shows.The text was updated successfully, but these errors were encountered: