mirror of https://github.com/IoTcat/FDC.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
381 B
18 lines
381 B
5 years ago
|
var util = require('util');
|
||
|
var test = require('tap').test;
|
||
|
var expression = require('../lib/expression');
|
||
|
|
||
|
test('expression 31 of month', function(t) {
|
||
|
try {
|
||
|
var interval = expression.parse('0 0 31 * *');
|
||
|
var i;
|
||
|
var d;
|
||
|
for (i = 0; i < 20; ++i) {
|
||
|
d = interval.next();
|
||
|
}
|
||
|
t.end();
|
||
|
} catch (err) {
|
||
|
t.ifError(err, 'Interval parse error');
|
||
|
}
|
||
|
});
|