aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/app/components/PlayerNameAndIcon.test.tsx
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-03-06 02:18:40 +0900
committernsfisis <nsfisis@gmail.com>2026-03-06 02:18:40 +0900
commit46f9ba5d8c295454381655e6ec02ad3cf8bd79db (patch)
treec54719cb129ee05f96c4898219588062f71daa36 /frontend/app/components/PlayerNameAndIcon.test.tsx
parent27f509ccf4fbfeaa1bc2580ae2251461dc44ebfa (diff)
downloadphperkaigi-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/PlayerNameAndIcon.test.tsx')
-rw-r--r--frontend/app/components/PlayerNameAndIcon.test.tsx50
1 files changed, 25 insertions, 25 deletions
diff --git a/frontend/app/components/PlayerNameAndIcon.test.tsx b/frontend/app/components/PlayerNameAndIcon.test.tsx
index 5a9dd49..e7b851c 100644
--- a/frontend/app/components/PlayerNameAndIcon.test.tsx
+++ b/frontend/app/components/PlayerNameAndIcon.test.tsx
@@ -6,34 +6,34 @@ import { afterEach, describe, expect, test } from "vitest";
import PlayerNameAndIcon from "./PlayerNameAndIcon";
afterEach(() => {
- cleanup();
+ cleanup();
});
describe("PlayerNameAndIcon", () => {
- test("renders display name", () => {
- render(
- <PlayerNameAndIcon
- profile={{ id: 1, displayName: "Alice", iconPath: null }}
- />,
- );
- expect(screen.getByText("Alice")).toBeDefined();
- });
+ test("renders display name", () => {
+ render(
+ <PlayerNameAndIcon
+ profile={{ id: 1, displayName: "Alice", iconPath: null }}
+ />,
+ );
+ expect(screen.getByText("Alice")).toBeDefined();
+ });
- test("does not render icon when iconPath is null", () => {
- render(
- <PlayerNameAndIcon
- profile={{ id: 1, displayName: "Bob", iconPath: null }}
- />,
- );
- expect(screen.queryByRole("img")).toBeNull();
- });
+ test("does not render icon when iconPath is null", () => {
+ render(
+ <PlayerNameAndIcon
+ profile={{ id: 1, displayName: "Bob", iconPath: null }}
+ />,
+ );
+ expect(screen.queryByRole("img")).toBeNull();
+ });
- test("renders icon when iconPath is provided", () => {
- render(
- <PlayerNameAndIcon
- profile={{ id: 1, displayName: "Carol", iconPath: "icons/carol.png" }}
- />,
- );
- expect(screen.getByAltText("Carol のアイコン")).toBeDefined();
- });
+ test("renders icon when iconPath is provided", () => {
+ render(
+ <PlayerNameAndIcon
+ profile={{ id: 1, displayName: "Carol", iconPath: "icons/carol.png" }}
+ />,
+ );
+ expect(screen.getByAltText("Carol のアイコン")).toBeDefined();
+ });
});