From 198dbb25bc359a58373fee11ccd43ef1d732b936 Mon Sep 17 00:00:00 2001 From: Wes Dean <87149725+wesley-dean-gsa@users.noreply.github.com> Date: Mon, 16 Dec 2024 08:45:07 -0500 Subject: [PATCH 1/2] Update renderInfoSessions.js moved future dates further out into the future --- _tests/renderInfoSessions.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/_tests/renderInfoSessions.js b/_tests/renderInfoSessions.js index 6dfed665..e9088cbb 100644 --- a/_tests/renderInfoSessions.js +++ b/_tests/renderInfoSessions.js @@ -15,12 +15,12 @@ describe("renderInfoSessions", () => { it("renders valid upcoming info sessions into the link item", () => { const mockInfoSessions = [ { - date: "2024-12-15T00:00:00Z", + date: "2034-12-15T00:00:00Z", time: "2:00pm-3:00pm", link: "https://example.com/session1", }, { - date: "2024-12-20T00:00:00Z", + date: "2034-12-20T00:00:00Z", time: "1:00pm-2:00pm", link: "https://example.com/session2", }, @@ -78,7 +78,7 @@ describe("renderInfoSessions", () => { link: "https://example.com/past-session", }, { - date: "2024-12-15T00:00:00Z", + date: "2034-12-15T00:00:00Z", time: "2:00pm-3:00pm", link: "https://example.com/future-session", }, @@ -96,7 +96,7 @@ describe("renderInfoSessions", () => { it("renders a styled wrapper with correct classes for /join/ page layout", () => { const mockInfoSessions = [ { - date: "2024-12-15T00:00:00Z", + date: "2034-12-15T00:00:00Z", time: "2:00pm-3:00pm", link: "https://example.com/session1", }, @@ -114,7 +114,7 @@ describe("renderInfoSessions", () => { it("renders a styled wrapper with correct classes for position layout", () => { const mockInfoSessions = [ { - date: "2024-12-15T00:00:00Z", + date: "2034-12-15T00:00:00Z", time: "2:00pm-3:00pm", link: "https://example.com/session1", }, From 600e3094ef8f6e2a31f4036a740c42b8048ae079 Mon Sep 17 00:00:00 2001 From: Wes Dean <87149725+wesley-dean-gsa@users.noreply.github.com> Date: Mon, 16 Dec 2024 08:48:58 -0500 Subject: [PATCH 2/2] Update renderInfoSessions.js --- _tests/renderInfoSessions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_tests/renderInfoSessions.js b/_tests/renderInfoSessions.js index e9088cbb..de4d8b4f 100644 --- a/_tests/renderInfoSessions.js +++ b/_tests/renderInfoSessions.js @@ -31,7 +31,7 @@ describe("renderInfoSessions", () => { expect(listItems.length).toBe(2); expect(listItems[0].querySelector("a").href).toBe(mockInfoSessions[0].link); - expect(listItems[0].querySelector("a").innerText).toContain("Sunday"); + expect(listItems[0].querySelector("a").innerText).toContain("Friday"); expect(listItems[1].querySelector("a").href).toBe(mockInfoSessions[1].link); });