chore:: apply prettier formatting to entire codebase

This commit is contained in:
Draculabo committed 2026-01-19 19:40:11 +08:00
1 parent 695d787b01
commit a343e0c1ae
43 files changed
+408 -485

No files matched your search

+11 -11
View File
@@ -1,27 +1,27 @@
// @vitest-environment happy-dom
import { render } from "@testing-library/react";
import { test, expect } from "vitest";
import ToggleTheme from "@/components/toggle-theme";
import { render } from '@testing-library/react';
import { test, expect } from 'vitest';
import ToggleTheme from '@/components/toggle-theme';
test("renders ToggleTheme", () => {
test('renders ToggleTheme', () => {
const { getByRole } = render(<ToggleTheme />);
const isButton = getByRole("button");
const isButton = getByRole('button');
expect(isButton).toBeInTheDocument();
});
test("has icon", () => {
test('has icon', () => {
const { getByRole } = render(<ToggleTheme />);
const button = getByRole("button");
const icon = button.querySelector("svg");
const button = getByRole('button');
const icon = button.querySelector('svg');
expect(icon).toBeInTheDocument();
});
test("is moon icon", () => {
const svgIconClassName: string = "lucide-moon";
test('is moon icon', () => {
const svgIconClassName: string = 'lucide-moon';
const { getByRole } = render(<ToggleTheme />);
const svg = getByRole("button").querySelector("svg");
const svg = getByRole('button').querySelector('svg');
expect(svg?.classList).toContain(svgIconClassName);
});