test: add MenuLabel component test case

Signed-off-by: Ryan Wang <i@ryanc.cc>
pull/581/head
Ryan Wang 3 years ago
parent d9273cabdf
commit 982ba1f4f3

@ -0,0 +1,12 @@
import { describe, expect, it } from "vitest";
import { VMenuLabel } from "../index";
import { mount } from "@vue/test-utils";
describe("MenuLabel", () => {
it("should render", () => {
expect(VMenuLabel).toBeDefined();
expect(
mount(VMenuLabel, { slots: { default: "Hello Halo" } }).html()
).toMatchSnapshot();
});
});

@ -0,0 +1,8 @@
import { describe, expect, it } from "vitest";
import { VRoutesMenu } from "../RoutesMenu";
describe("RoutesMenu", () => {
it("should render", () => {
expect(VRoutesMenu).toBeDefined();
});
});

@ -0,0 +1,3 @@
// Vitest Snapshot v1
exports[`MenuLabel > should render 1`] = `"<li class=\\"menu-label flex flex-col\\">Hello Halo</li>"`;
Loading…
Cancel
Save