diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-03-06 02:18:40 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-03-06 02:18:40 +0900 |
| commit | 46f9ba5d8c295454381655e6ec02ad3cf8bd79db (patch) | |
| tree | c54719cb129ee05f96c4898219588062f71daa36 /frontend/app/components/UserIcon.test.tsx | |
| parent | 27f509ccf4fbfeaa1bc2580ae2251461dc44ebfa (diff) | |
| download | phperkaigi-2026-albatross-46f9ba5d8c295454381655e6ec02ad3cf8bd79db.tar.gz phperkaigi-2026-albatross-46f9ba5d8c295454381655e6ec02ad3cf8bd79db.tar.zst phperkaigi-2026-albatross-46f9ba5d8c295454381655e6ec02ad3cf8bd79db.zip | |
style: switch from tab to space indentation in frontend and worker/php
Update biome.json indentStyle from "tab" to "space" and reformat all
files in both workspaces.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'frontend/app/components/UserIcon.test.tsx')
| -rw-r--r-- | frontend/app/components/UserIcon.test.tsx | 94 |
1 files changed, 47 insertions, 47 deletions
diff --git a/frontend/app/components/UserIcon.test.tsx b/frontend/app/components/UserIcon.test.tsx index 964aae1..5311234 100644 --- a/frontend/app/components/UserIcon.test.tsx +++ b/frontend/app/components/UserIcon.test.tsx @@ -6,57 +6,57 @@ import { afterEach, describe, expect, test } from "vitest"; import UserIcon from "./UserIcon"; afterEach(() => { - cleanup(); + cleanup(); }); describe("UserIcon", () => { - test("renders an img element", () => { - render( - <UserIcon - iconPath="icons/test.png" - displayName="TestUser" - className="w-16 h-16" - />, - ); - const img = screen.getByAltText("TestUser のアイコン"); - expect(img.tagName).toBe("IMG"); - }); + test("renders an img element", () => { + render( + <UserIcon + iconPath="icons/test.png" + displayName="TestUser" + className="w-16 h-16" + />, + ); + const img = screen.getByAltText("TestUser のアイコン"); + expect(img.tagName).toBe("IMG"); + }); - test("sets alt text with display name", () => { - render( - <UserIcon - iconPath="icons/test.png" - displayName="Alice" - className="w-16 h-16" - />, - ); - expect(screen.getByAltText("Alice のアイコン")).toBeDefined(); - }); + test("sets alt text with display name", () => { + render( + <UserIcon + iconPath="icons/test.png" + displayName="Alice" + className="w-16 h-16" + />, + ); + expect(screen.getByAltText("Alice のアイコン")).toBeDefined(); + }); - test("applies rounded-full and border classes", () => { - render( - <UserIcon - iconPath="icons/test.png" - displayName="Bob" - className="w-16 h-16" - />, - ); - const img = screen.getByAltText("Bob のアイコン"); - expect(img.className).toContain("rounded-full"); - expect(img.className).toContain("border-4"); - expect(img.className).toContain("border-white"); - }); + test("applies rounded-full and border classes", () => { + render( + <UserIcon + iconPath="icons/test.png" + displayName="Bob" + className="w-16 h-16" + />, + ); + const img = screen.getByAltText("Bob のアイコン"); + expect(img.className).toContain("rounded-full"); + expect(img.className).toContain("border-4"); + expect(img.className).toContain("border-white"); + }); - test("applies custom className", () => { - render( - <UserIcon - iconPath="icons/test.png" - displayName="Bob" - className="w-48 h-48" - />, - ); - const img = screen.getByAltText("Bob のアイコン"); - expect(img.className).toContain("w-48"); - expect(img.className).toContain("h-48"); - }); + test("applies custom className", () => { + render( + <UserIcon + iconPath="icons/test.png" + displayName="Bob" + className="w-48 h-48" + />, + ); + const img = screen.getByAltText("Bob のアイコン"); + expect(img.className).toContain("w-48"); + expect(img.className).toContain("h-48"); + }); }); |
