aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/app/components/SubmitButton.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/SubmitButton.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/SubmitButton.test.tsx')
-rw-r--r--frontend/app/components/SubmitButton.test.tsx50
1 files changed, 25 insertions, 25 deletions
diff --git a/frontend/app/components/SubmitButton.test.tsx b/frontend/app/components/SubmitButton.test.tsx
index 9a8085e..06cf5f5 100644
--- a/frontend/app/components/SubmitButton.test.tsx
+++ b/frontend/app/components/SubmitButton.test.tsx
@@ -6,36 +6,36 @@ import { afterEach, describe, expect, test } from "vitest";
import SubmitButton from "./SubmitButton";
afterEach(() => {
- cleanup();
+ cleanup();
});
describe("SubmitButton", () => {
- test("renders children text", () => {
- render(<SubmitButton>Submit</SubmitButton>);
- expect(screen.getByText("Submit")).toBeDefined();
- });
+ test("renders children text", () => {
+ render(<SubmitButton>Submit</SubmitButton>);
+ expect(screen.getByText("Submit")).toBeDefined();
+ });
- test("renders as a button element", () => {
- render(<SubmitButton>Click</SubmitButton>);
- const button = screen.getByText("Click");
- expect(button.tagName).toBe("BUTTON");
- });
+ test("renders as a button element", () => {
+ render(<SubmitButton>Click</SubmitButton>);
+ const button = screen.getByText("Click");
+ expect(button.tagName).toBe("BUTTON");
+ });
- test("can be disabled", () => {
- render(<SubmitButton disabled>Submit</SubmitButton>);
- const button = screen.getByText("Submit") as HTMLButtonElement;
- expect(button.disabled).toBe(true);
- });
+ test("can be disabled", () => {
+ render(<SubmitButton disabled>Submit</SubmitButton>);
+ const button = screen.getByText("Submit") as HTMLButtonElement;
+ expect(button.disabled).toBe(true);
+ });
- test("is not disabled by default", () => {
- render(<SubmitButton>Submit</SubmitButton>);
- const button = screen.getByText("Submit") as HTMLButtonElement;
- expect(button.disabled).toBe(false);
- });
+ test("is not disabled by default", () => {
+ render(<SubmitButton>Submit</SubmitButton>);
+ const button = screen.getByText("Submit") as HTMLButtonElement;
+ expect(button.disabled).toBe(false);
+ });
- test("has brand-600 background styling", () => {
- render(<SubmitButton>Submit</SubmitButton>);
- const button = screen.getByText("Submit");
- expect(button.className).toContain("bg-brand-600");
- });
+ test("has brand-600 background styling", () => {
+ render(<SubmitButton>Submit</SubmitButton>);
+ const button = screen.getByText("Submit");
+ expect(button.className).toContain("bg-brand-600");
+ });
});