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,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();

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