Skip to content

Commit

Permalink
Fix broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
Hexagon committed Sep 1, 2023
1 parent 78e441c commit b08900d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/node/js/src/suites/pattern.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ module.exports = function (Cron, test) {

let scheduler = new Cron("0 0 0 * * SAT-SUN#L,SUN#1"),
prevRun = new Date(1691536579072), // From 9th of august 2023
nextRun = scheduler.nextRuns(prevRun);
nextRun = scheduler.nextRuns(5, prevRun);

// Do comparison
assert.equal(nextRun[0].getDate(),26);
Expand Down Expand Up @@ -414,7 +414,7 @@ module.exports = function (Cron, test) {

let scheduler = new Cron("0 0 0 * * SUN-MON#3,MON-TUE#1"),
prevRun = new Date(1691536579072), // From 9th of august 2023
nextRun = scheduler.nextRuns(prevRun);
nextRun = scheduler.nextRuns(5, prevRun);

// Do comparison
assert.equal(nextRun[0].getDate(),20);
Expand Down

0 comments on commit b08900d

Please sign in to comment.