mirror of https://github.com/halo-dev/halo-admin
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…
Reference in new issue