You cannot 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
		
	
	
		
			372 B
		
	
	
	
		
			JavaScript
		
	
		
		
			
		
	
	
			13 lines
		
	
	
		
			372 B
		
	
	
	
		
			JavaScript
		
	
| 
								 
											4 years ago
										 
									 | 
							
								import { shallowMount } from "@vue/test-utils";
							 | 
						||
| 
								 | 
							
								import HelloWorld from "@/components/HelloWorld.vue";
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								describe("HelloWorld.vue", () => {
							 | 
						||
| 
								 | 
							
								    it("renders props.msg when passed", () => {
							 | 
						||
| 
								 | 
							
								        const msg = "new message";
							 | 
						||
| 
								 | 
							
								        const wrapper = shallowMount(HelloWorld, {
							 | 
						||
| 
								 | 
							
								            propsData: { msg }
							 | 
						||
| 
								 | 
							
								        });
							 | 
						||
| 
								 | 
							
								        expect(wrapper.text()).toMatch(msg);
							 | 
						||
| 
								 | 
							
								    });
							 | 
						||
| 
								 | 
							
								});
							 |