How I could write a test that checks my cron job will run at an expected time?
The CRON job is something like this
0 0 0 ? * * * which is basically will run the job at 00:00:00am every day!
I tried with something like:
var cron = CronJob.get('my-cron-job'); var def = cron.scheduleDef;
scheduleDef I get back only the expression, how I could get the next execution time to check it with expected datetime?