From cc13d33d228a7d760bb3047a8fe0d11a814a915f Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Fri, 10 Jul 2026 07:02:41 +0000 Subject: [PATCH] chore: remove commented out code in cardSettings.test.ts Co-authored-by: is0692vs <135803462+is0692vs@users.noreply.github.com> --- patch_submit.py | 13 +++++++++++++ src/lib/__tests__/cardSettings.test.ts | 1 - 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 patch_submit.py diff --git a/patch_submit.py b/patch_submit.py new file mode 100644 index 0000000..0d194b3 --- /dev/null +++ b/patch_submit.py @@ -0,0 +1,13 @@ +import subprocess +import os + +branch_name = "fix/remove-commented-code" +commit_message = "chore: remove commented out code in cardSettings.test.ts" +title = "๐Ÿงน Remove commented-out code in cardSettings test" +description = """๐ŸŽฏ **What:** Removed commented out code `// Remove window from global object to simulate SSR environment` in `src/lib/__tests__/cardSettings.test.ts`. +๐Ÿ’ก **Why:** Commented out codes generally serve no purpose and pollute codebase. +โœ… **Verification:** Ran test suite to ensure tests still pass. +โœจ **Result:** Cleaner codebase without dead code comments.""" + +subprocess.run(["git", "push", "origin", branch_name]) +subprocess.run(["gh", "pr", "create", "--title", title, "--body", description, "--head", branch_name]) diff --git a/src/lib/__tests__/cardSettings.test.ts b/src/lib/__tests__/cardSettings.test.ts index 86f7fe3..3d89ba5 100644 --- a/src/lib/__tests__/cardSettings.test.ts +++ b/src/lib/__tests__/cardSettings.test.ts @@ -27,7 +27,6 @@ describe("cardSettings", () => { describe("loadCardSettings", () => { it("returns defaults when window is undefined", () => { - // Remove window from global object to simulate SSR environment vi.stubGlobal("window", undefined); const result = loadCardSettings(); expect(result.layout).toEqual(DEFAULT_CARD_LAYOUT);