Full cleanup pass

This commit is contained in:
adilallo
2026-05-21 23:25:56 -06:00
parent 28de8ef3bc
commit 99f535f821
149 changed files with 2623 additions and 1242 deletions
+4 -4
View File
@@ -1,5 +1,6 @@
import React from "react";
import { render, screen } from "@testing-library/react";
import { screen } from "@testing-library/react";
import { renderWithProviders as render } from "../utils/test-utils";
import { describe, it, expect } from "vitest";
import Logo from "../../app/components/asset/Logo";
import {
@@ -27,7 +28,6 @@ const config: ComponentTestSuiteConfig<LogoProps> = {
componentTestSuite<LogoProps>(config);
// Pure presentational; no provider context needed.
describe("Logo (behavioral tests)", () => {
it("renders as a link to home", () => {
render(<Logo />);
@@ -38,7 +38,7 @@ describe("Logo (behavioral tests)", () => {
it("renders logo icon", () => {
render(<Logo />);
expect(screen.getByAltText("CommunityRule Logo Icon")).toBeInTheDocument();
expect(screen.getByAltText("CommunityRule Logo")).toBeInTheDocument();
});
it("renders text by default", () => {
@@ -50,7 +50,7 @@ describe("Logo (behavioral tests)", () => {
const { container } = render(<Logo wordmark={false} />);
const textElement = container.querySelector(".hidden");
expect(textElement).toBeInTheDocument();
expect(screen.getByAltText("CommunityRule Logo Icon")).toBeInTheDocument();
expect(screen.getByAltText("CommunityRule Logo")).toBeInTheDocument();
});
it("applies inverse palette styling when palette is inverse", () => {