From d39b8dc84ad1de7e7040fef2c4f6ba48f731b13e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 21 Jan 2026 17:15:17 +0000 Subject: [PATCH 1/2] Initial plan From 1fd97f9c305de33454ae14c919ae9ada7f15fbd1 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 21 Jan 2026 17:21:15 +0000 Subject: [PATCH 2/2] Fix ephemerals.test.cjs: Add blockquote prefixes to test cases - Update test bodies to include '>' blockquote prefix required by updated regex patterns - Fix invalid date test to use a truly invalid date string - Clarify test name for EXPIRATION_PATTERN without blockquote prefix - All 35 ephemerals tests now pass Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com> --- actions/setup/js/ephemerals.test.cjs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/actions/setup/js/ephemerals.test.cjs b/actions/setup/js/ephemerals.test.cjs index 60110d211fb..9341805b189 100644 --- a/actions/setup/js/ephemerals.test.cjs +++ b/actions/setup/js/ephemerals.test.cjs @@ -46,7 +46,7 @@ describe("ephemerals", () => { describe("extractExpirationDate", () => { it("should extract date from body with expiration marker", async () => { const { extractExpirationDate } = await import("./ephemerals.cjs"); - const body = "Some text\n- [x] expires on Jan 25, 2026\nMore text"; + const body = "Some text\n> - [x] expires on Jan 25, 2026\nMore text"; const result = extractExpirationDate(body); expect(result).toBeInstanceOf(Date); @@ -94,7 +94,7 @@ describe("ephemerals", () => { it("should return null for invalid date", async () => { const { extractExpirationDate } = await import("./ephemerals.cjs"); - const body = "- [x] expires on Jan 25, 2026"; + const body = "> - [x] expires on Jan 25, 2026"; const result = extractExpirationDate(body); expect(result).toBeNull(); @@ -102,7 +102,7 @@ describe("ephemerals", () => { it("should return null for invalid legacy date", async () => { const { extractExpirationDate } = await import("./ephemerals.cjs"); - const body = "> - [x] expires on Invalid Date, 9999 UTC"; + const body = "> - [x] expires on Not a valid date string UTC"; const result = extractExpirationDate(body); expect(result).toBeNull(); @@ -110,7 +110,7 @@ describe("ephemerals", () => { it("should handle standard expiration marker format", async () => { const { extractExpirationDate } = await import("./ephemerals.cjs"); - const body = "Some text\n- [x] expires on Jan 25, 2026\nMore text"; + const body = "Some text\n> - [x] expires on Jan 25, 2026\nMore text"; const result = extractExpirationDate(body); expect(result).toBeInstanceOf(Date); @@ -288,7 +288,7 @@ describe("ephemerals", () => { expect(EXPIRATION_PATTERN).toBeInstanceOf(RegExp); }); - it("should match standard expiration line without blockquote", async () => { + it("should NOT match standard expiration line without blockquote", async () => { const { EXPIRATION_PATTERN } = await import("./ephemerals.cjs"); const line = "- [x] expires on Jan 25, 2026"; // This should NOT match because the pattern requires blockquote prefix