Skip to content

a javascript library that helps testing date-dependent web applications

License

Notifications You must be signed in to change notification settings

busilina/timeleap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

timeleap

a javascript library that helps testing date-dependent web applications

getting started

  • let's suppose today [new Date()] is: 10/01/2017

  • simulate a whole date (in future or past): timeleap.goto({year: 2018, month: 12, day: 20}) // new Date() -> 20/12/2018

  • simulate year and month but keep system day: timeleap.goto({year: 2018, month: 4}) // new Date() -> 10/4/2018

  • simulate only year and keep system month and day: timeleap.goto({year: 2018}) // new Date() -> 10/1/2018

  • simulate only month and keep system year and day: timeleap.goto({month: 4}) // new Date() -> 10/4/2017

  • simulate only day and keep system year and month: timeleap.goto({day: 20}) // new Date() -> 20/1/2017

  • stop simulation and go back to system date: timeleap.back();

About

a javascript library that helps testing date-dependent web applications

Resources

License

Stars

Watchers

Forks

Packages

No packages published