Init
This commit is contained in:
22
node_modules/cron-parser/test/empty_around_comma.js
generated
vendored
Normal file
22
node_modules/cron-parser/test/empty_around_comma.js
generated
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
// empty around comma
|
||||
|
||||
var test = require('tap').test;
|
||||
var CronExpression = require('../lib/expression');
|
||||
|
||||
const options = {
|
||||
utc: true
|
||||
};
|
||||
|
||||
test('both empty around comma', function (t) {
|
||||
t.throws(function () {
|
||||
CronExpression.parse('*/10 * * * * ,', options);
|
||||
}, new Error('Invalid list value format'));
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('one side empty around comma', function (t) {
|
||||
t.throws(function () {
|
||||
CronExpression.parse('*/10 * * * * ,2', options);
|
||||
}, new Error('Invalid list value format'));
|
||||
t.end();
|
||||
});
|
||||
Reference in New Issue
Block a user