Created by: zhaow-de
The sequence of jobs in the array jobs
is not guaranteed for the complex cron jobs. It happens that jobs[2]
is actually { cron: '2 * * 4 * *', next: 259202000, tz: 'Africa/Accra' }
which results in a test failure.
Changing from expect(jobs[0]).to.include
to expect(jobs).to.deep.include
removes the depenency on job sequences.