| 
									
										
										
										
											2018-03-01 22:19:59 +08:00
										 |  |  | import { expect } from 'chai'; | 
					
						
							| 
									
										
										
										
											2018-03-24 16:33:17 +08:00
										 |  |  | import { lookup, translate } from './translate'; | 
					
						
							| 
									
										
										
										
											2018-03-01 22:19:59 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-02 08:08:39 +08:00
										 |  |  | describe('根据字典进行翻译', () => { | 
					
						
							|  |  |  |   it('查字典', () => { | 
					
						
							| 
									
										
										
										
											2018-03-01 22:19:59 +08:00
										 |  |  |     expect(lookup('# Forms')[0].translation).eql('# 表单'); | 
					
						
							|  |  |  |   }); | 
					
						
							| 
									
										
										
										
											2018-03-03 21:05:33 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-24 16:33:17 +08:00
										 |  |  |   it('翻译 header', () => { | 
					
						
							|  |  |  |     expect(translate(`<header></header>`)).eql(``); | 
					
						
							| 
									
										
										
										
											2018-03-03 21:05:33 +08:00
										 |  |  |   }); | 
					
						
							| 
									
										
										
										
											2018-03-01 22:19:59 +08:00
										 |  |  | }); |