Init
This commit is contained in:
16
node_modules/cron-parser/test/crondate.js
generated
vendored
Normal file
16
node_modules/cron-parser/test/crondate.js
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
// empty around comma
|
||||
|
||||
var test = require('tap').test;
|
||||
var CronDate = require('../lib/date');
|
||||
|
||||
test('is the last weekday of the month', function (t) {
|
||||
// Last monday of septhember
|
||||
var date = new CronDate(new Date(2021, 8, 27));
|
||||
t.equal(date.isLastWeekdayOfMonth(), true);
|
||||
|
||||
// Second-to-last monday of septhember
|
||||
var date = new CronDate(new Date(2021, 8, 20));
|
||||
t.equal(date.isLastWeekdayOfMonth(), false);
|
||||
|
||||
t.end();
|
||||
});
|
||||
Reference in New Issue
Block a user