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.
		
		
		
		
		
			
		
			
				
					
					
						
							23 lines
						
					
					
						
							519 B
						
					
					
				
			
		
		
	
	
							23 lines
						
					
					
						
							519 B
						
					
					
				| // 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();
 | |
| });
 |