update TopBar component tests
This commit is contained in:
@@ -1,10 +1,16 @@
|
||||
/* eslint-disable no-undef */
|
||||
import { shallowMount } from "@vue/test-utils";
|
||||
import TopBar from "../TopBar.vue";
|
||||
import { createApp } from "vue";
|
||||
import App from "../../../App.vue";
|
||||
import { createPinia } from "pinia";
|
||||
|
||||
const app = createApp(App);
|
||||
app.use(createPinia());
|
||||
|
||||
describe("TopBar.vue", () => {
|
||||
it("render component when called", () => {
|
||||
const wrapper = shallowMount(TopBar);
|
||||
expect(wrapper).toBeCalled();
|
||||
// expect(wrapper).toBeCalled();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user