| 
									
										
										
										
											2022-07-18 03:51:24 +00:00
										 |  |  | import {component} from 'riot'; | 
					
						
							| 
									
										
										
										
											2022-07-29 04:14:19 +00:00
										 |  |  | import {expect} from 'chai'; | 
					
						
							|  |  |  | import HelloRiot from './hello-riot.riot'; | 
					
						
							| 
									
										
										
										
											2022-07-18 03:51:24 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | describe('Hello Riot Page Unit Test', () => { | 
					
						
							|  |  |  |     const mount = component(HelloRiot); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     it('The component properties are properly rendered', () => { | 
					
						
							|  |  |  |         const div = document.createElement('div') | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         const component = mount(div, { | 
					
						
							| 
									
										
										
										
											2022-08-24 23:19:17 +00:00
										 |  |  |             version: 'v7.x' | 
					
						
							| 
									
										
										
										
											2022-07-18 03:51:24 +00:00
										 |  |  |         }); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-08-24 23:19:17 +00:00
										 |  |  |         expect(component.$('p').innerHTML).to.be.equal('v7.x'); | 
					
						
							| 
									
										
										
										
											2022-07-18 03:51:24 +00:00
										 |  |  |     }); | 
					
						
							|  |  |  | }); |