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.
		
		
		
		
		
			
		
			
				
					17 lines
				
				626 B
			
		
		
			
		
	
	
					17 lines
				
				626 B
			| 
								 
											2 years ago
										 
									 | 
							
								'use strict';
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								const { expect } = require('chai');
							 | 
						||
| 
								 | 
							
								const conversion = require('../../src/convert-expression/month-names-conversion');
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								describe('month-names-conversion.js', () => {
							 | 
						||
| 
								 | 
							
								    it('shuld convert month names', () => {
							 | 
						||
| 
								 | 
							
								        const months = conversion('January,February,March,April,May,June,July,August,September,October,November,December');
							 | 
						||
| 
								 | 
							
								        expect(months).to.equal('1,2,3,4,5,6,7,8,9,10,11,12');
							 | 
						||
| 
								 | 
							
								    });
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    it('shuld convert month names', () => {
							 | 
						||
| 
								 | 
							
								        const months = conversion('Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec');
							 | 
						||
| 
								 | 
							
								        expect(months).to.equal('1,2,3,4,5,6,7,8,9,10,11,12');
							 | 
						||
| 
								 | 
							
								    });
							 | 
						||
| 
								 | 
							
								});
							 |