Files
MeshChatX/tests/frontend/FormLabel.test.js
Sudo-Ivan 5a9e066b10
Some checks failed
CI / test-backend (push) Successful in 17s
CI / lint (push) Successful in 46s
Tests / test (push) Failing after 5m15s
CI / build-frontend (push) Successful in 9m33s
feat(tests): add comprehensive unit tests for various components including AboutPage, CallPage, and MessagesPage
2026-01-02 20:36:58 -06:00

21 lines
612 B
JavaScript

import { mount } from "@vue/test-utils";
import { describe, it, expect } from "vitest";
import FormLabel from "@/components/forms/FormLabel.vue";
describe("FormLabel.vue", () => {
it("renders slot content", () => {
const wrapper = mount(FormLabel, {
slots: {
default: "Label Text",
},
});
expect(wrapper.text()).toBe("Label Text");
});
it("has correct classes", () => {
const wrapper = mount(FormLabel);
expect(wrapper.classes()).toContain("block");
expect(wrapper.classes()).toContain("text-sm");
});
});