aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/app/components/Gaming/LeftTime.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/Gaming/LeftTime.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/Gaming/LeftTime.test.tsx')
-rw-r--r--frontend/app/components/Gaming/LeftTime.test.tsx58
1 files changed, 29 insertions, 29 deletions
diff --git a/frontend/app/components/Gaming/LeftTime.test.tsx b/frontend/app/components/Gaming/LeftTime.test.tsx
index 742d8eb..28f2fc4 100644
--- a/frontend/app/components/Gaming/LeftTime.test.tsx
+++ b/frontend/app/components/Gaming/LeftTime.test.tsx
@@ -6,42 +6,42 @@ import { afterEach, describe, expect, test } from "vitest";
import LeftTime from "./LeftTime";
afterEach(() => {
- cleanup();
+ cleanup();
});
describe("LeftTime", () => {
- test("renders MM:SS format for short durations", () => {
- render(<LeftTime sec={65} />);
- expect(screen.getByText("01:05")).toBeDefined();
- });
+ test("renders MM:SS format for short durations", () => {
+ render(<LeftTime sec={65} />);
+ expect(screen.getByText("01:05")).toBeDefined();
+ });
- test("renders 00:00 for zero seconds", () => {
- render(<LeftTime sec={0} />);
- expect(screen.getByText("00:00")).toBeDefined();
- });
+ test("renders 00:00 for zero seconds", () => {
+ render(<LeftTime sec={0} />);
+ expect(screen.getByText("00:00")).toBeDefined();
+ });
- test("renders MM:SS with leading zeros", () => {
- render(<LeftTime sec={5} />);
- expect(screen.getByText("00:05")).toBeDefined();
- });
+ test("renders MM:SS with leading zeros", () => {
+ render(<LeftTime sec={5} />);
+ expect(screen.getByText("00:05")).toBeDefined();
+ });
- test("renders 59:59 for max MM:SS range", () => {
- render(<LeftTime sec={3599} />);
- expect(screen.getByText("59:59")).toBeDefined();
- });
+ test("renders 59:59 for max MM:SS range", () => {
+ render(<LeftTime sec={3599} />);
+ expect(screen.getByText("59:59")).toBeDefined();
+ });
- test("renders long format with hours", () => {
- render(<LeftTime sec={3661} />);
- expect(screen.getByText("1h 1m 1s")).toBeDefined();
- });
+ test("renders long format with hours", () => {
+ render(<LeftTime sec={3661} />);
+ expect(screen.getByText("1h 1m 1s")).toBeDefined();
+ });
- test("renders long format with days", () => {
- render(<LeftTime sec={90061} />);
- expect(screen.getByText("1d 1h 1m 1s")).toBeDefined();
- });
+ test("renders long format with days", () => {
+ render(<LeftTime sec={90061} />);
+ expect(screen.getByText("1d 1h 1m 1s")).toBeDefined();
+ });
- test("renders long format omitting zero day and minute", () => {
- render(<LeftTime sec={3605} />);
- expect(screen.getByText("1h 5s")).toBeDefined();
- });
+ test("renders long format omitting zero day and minute", () => {
+ render(<LeftTime sec={3605} />);
+ expect(screen.getByText("1h 5s")).toBeDefined();
+ });
});