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.
		
		
		
		
		
			
		
			
				
					13 lines
				
				434 B
			
		
		
			
		
	
	
					13 lines
				
				434 B
			| 
											2 years ago
										 | 'use strict'; | ||
|  | 
 | ||
|  | const { expect } = require('chai'); | ||
|  | const conversion = require('../../src/convert-expression/asterisk-to-range-conversion'); | ||
|  | 
 | ||
|  | describe('asterisk-to-range-conversion.js', () => { | ||
|  |     it('shuld convert * to ranges', () => { | ||
|  |         const expressions = '* * * * * *'.split(' '); | ||
|  |         const expression = conversion(expressions).join(' '); | ||
|  |         expect(expression).to.equal('0-59 0-59 0-23 1-31 1-12 0-6'); | ||
|  |     }); | ||
|  | }); |