Create first tests of TopBar component

This commit is contained in:
enzoggqs 2023-01-12 10:33:19 -03:00
parent b15d1b5ced
commit 8716bdb064
4 changed files with 3849 additions and 3885 deletions

View File

@ -1,5 +1,5 @@
<script setup lang="ts"> <script setup lang="ts">
import TopBar from "./components/TopBar.vue"; import TopBar from "./components/TopBar/TopBar.vue";
</script> </script>
<template> <template>

View File

@ -1,8 +1,8 @@
<script setup lang="ts"> <script setup lang="ts">
import { storeToRefs } from "pinia"; import { storeToRefs } from "pinia";
import { useEtherStore } from "../store/ether"; import { useEtherStore } from "../../store/ether";
import { ref } from "vue"; import { ref } from "vue";
import blockchain from "../utils/blockchain"; import blockchain from "../../utils/blockchain";
// Store reference // Store reference
const etherStore = useEtherStore(); const etherStore = useEtherStore();

View 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();
});
});

7718
yarn.lock

File diff suppressed because it is too large Load Diff