Files
Sudo-Ivan 00b4290735
All checks were successful
CI / test-backend (push) Successful in 15s
CI / lint (push) Successful in 42s
CI / build-frontend (push) Successful in 9m35s
feat(tests): add comprehensive test suite for backend functionality, including database, configuration, and telemetry utilities
2026-01-02 19:41:05 -06:00

21 lines
674 B
JavaScript

import { mount } from "@vue/test-utils";
import { describe, it, expect } from "vitest";
import IconButton from "../../meshchatx/src/frontend/components/IconButton.vue";
describe("IconButton.vue", () => {
it("renders slot content", () => {
const wrapper = mount(IconButton, {
slots: {
default: '<span class="test-icon">icon</span>',
},
});
expect(wrapper.find(".test-icon").exists()).toBe(true);
expect(wrapper.text()).toBe("icon");
});
it("has correct button type", () => {
const wrapper = mount(IconButton);
expect(wrapper.attributes("type")).toBe("button");
});
});