Fix failing tests and add unit tests

This commit is contained in:
adilallo
2025-09-12 10:26:21 -06:00
parent 0f9bc0d74e
commit c8f63ca39a
14 changed files with 1833 additions and 89 deletions
+4 -1
View File
@@ -1,6 +1,9 @@
import { notFound } from "next/navigation";
import Link from "next/link";
import { getBlogPostBySlug, getAllPosts } from "../../../lib/contentProcessor";
import {
getBlogPostBySlug,
getAllBlogPosts as getAllPosts,
} from "../../../lib/content";
import ContentBanner from "../../components/ContentBanner";
import RelatedArticles from "../../components/RelatedArticles";
import AskOrganizer from "../../components/AskOrganizer";
+1 -3
View File
@@ -116,13 +116,11 @@ export default function Logo({ size = "default", showText = true }) {
: sizes.default;
return (
<Link href="/" className="block">
<Link href="/" className="block" aria-label="CommunityRule Logo">
<div
className={`flex items-center ${config.containerHeight} ${
showText ? config.gap : ""
} transition-all duration-200 ease-in-out hover:scale-[1.02] cursor-pointer`}
role="link"
aria-label="CommunityRule Logo"
>
{/* Logo Text - only show if showText is true */}
{showText && (