Files
MeshChatX/tests/frontend/FormSubLabel.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

20 lines
581 B
JavaScript

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