Create first tests of TopBar component
This commit is contained in:
		
							parent
							
								
									b15d1b5ced
								
							
						
					
					
						commit
						8716bdb064
					
				| @ -1,5 +1,5 @@ | ||||
| <script setup lang="ts"> | ||||
| import TopBar from "./components/TopBar.vue"; | ||||
| import TopBar from "./components/TopBar/TopBar.vue"; | ||||
| </script> | ||||
| 
 | ||||
| <template> | ||||
|  | ||||
| @ -1,8 +1,8 @@ | ||||
| <script setup lang="ts"> | ||||
| import { storeToRefs } from "pinia"; | ||||
| import { useEtherStore } from "../store/ether"; | ||||
| import { useEtherStore } from "../../store/ether"; | ||||
| import { ref } from "vue"; | ||||
| import blockchain from "../utils/blockchain"; | ||||
| import blockchain from "../../utils/blockchain"; | ||||
| 
 | ||||
| // Store reference | ||||
| const etherStore = useEtherStore(); | ||||
							
								
								
									
										10
									
								
								src/components/TopBar/__tests__/TopBar.spec.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								src/components/TopBar/__tests__/TopBar.spec.ts
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,10 @@ | ||||
| /* eslint-disable no-undef */ | ||||
| import { shallowMount } from "@vue/test-utils"; | ||||
| import TopBar from "../TopBar.vue"; | ||||
| 
 | ||||
| describe("TopBar.vue", () => { | ||||
|   it("render component when called", () => { | ||||
|     const wrapper = shallowMount(TopBar); | ||||
|     expect(wrapper).toBeCalled(); | ||||
|   }); | ||||
| }); | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user