Fix ESLint errors
This commit is contained in:
@@ -33,27 +33,6 @@ const mockBlogPost = {
|
||||
"<p>This is the main content of the test article.</p><p>It has multiple paragraphs.</p>",
|
||||
};
|
||||
|
||||
const mockRelatedPosts = [
|
||||
{
|
||||
slug: "related-article-1",
|
||||
frontmatter: {
|
||||
title: "Related Article 1",
|
||||
description: "First related article",
|
||||
author: "Test Author",
|
||||
date: "2025-04-14",
|
||||
},
|
||||
},
|
||||
{
|
||||
slug: "related-article-2",
|
||||
frontmatter: {
|
||||
title: "Related Article 2",
|
||||
description: "Second related article",
|
||||
author: "Test Author",
|
||||
date: "2025-04-13",
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
describe("Content Page Rendering E2E", () => {
|
||||
beforeEach(() => {
|
||||
vi.clearAllMocks();
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { describe, it, expect, vi, beforeEach } from "vitest";
|
||||
import { render, screen, fireEvent } from "@testing-library/react";
|
||||
import { render, screen } from "@testing-library/react";
|
||||
import Logo from "../../app/components/Logo";
|
||||
|
||||
// Mock Next.js Link component
|
||||
|
||||
@@ -239,7 +239,7 @@ test.describe("Edge Cases and Error Scenarios", () => {
|
||||
// Trigger a harmless error
|
||||
try {
|
||||
throw new Error("Test error");
|
||||
} catch (e) {
|
||||
} catch (_e) {
|
||||
// Error handled
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user