Skip to content

Commit

Permalink
Merge branch 'staging' into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
wesley-dean-gsa authored Dec 16, 2024
2 parents c9b49bf + 6bff3b3 commit e444865
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions _tests/renderInfoSessions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
Expand All @@ -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);
});

Expand Down Expand Up @@ -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",
},
Expand All @@ -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",
},
Expand All @@ -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",
},
Expand Down

0 comments on commit e444865

Please sign in to comment.