Skip to content

Commit

Permalink
test(hub-common): update tests to account for addition of startDate, …
Browse files Browse the repository at this point in the history
…startTime, endDate & endTime ev

affects: @esri/hub-common
  • Loading branch information
rweber-esri committed May 2, 2024
1 parent 5f370b3 commit 3966360
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions packages/common/test/search/_internal/hubSearchEvents.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ describe("hubSearchEvents", () => {
description: "Event 1 description",
editGroups: ["editGroup1Id"],
endDateTime: "2040-07-15T18:00:00.000Z",
endDate: "2040-07-15",
endTime: "14:00:00",
geometry: {},
id: "event1Id",
notifyAttendees: true,
Expand Down Expand Up @@ -104,6 +106,8 @@ describe("hubSearchEvents", () => {
},
],
startDateTime: "2040-07-15T17:00:00.000Z",
startDate: "2040-07-15",
startTime: "13:00:00",
status: EventStatus.PLANNED,
summary: "Event 1 summary",
tags: ["tag1"],
Expand All @@ -125,6 +129,8 @@ describe("hubSearchEvents", () => {
description: "Event 2 description",
editGroups: ["editGroup2Id"],
endDateTime: "2030-07-15T18:00:00.000Z",
endDate: "2030-07-15",
endTime: "11:00:00",
geometry: {},
id: "event2Id",
notifyAttendees: true,
Expand Down Expand Up @@ -158,6 +164,8 @@ describe("hubSearchEvents", () => {
},
],
startDateTime: "2030-07-15T17:00:00.000Z",
startDate: "2030-07-15",
startTime: "10:00:00",
status: EventStatus.PLANNED,
summary: "Event 2 summary",
tags: ["tag2"],
Expand Down Expand Up @@ -189,6 +197,8 @@ describe("hubSearchEvents", () => {
description: "Event 3 description",
editGroups: ["editGroup3Id"],
endDateTime: "2030-05-15T18:00:00.000Z",
endDate: "2030-05-15",
endTime: "12:00:00",
geometry: {},
id: "event3Id",
notifyAttendees: true,
Expand Down Expand Up @@ -237,6 +247,8 @@ describe("hubSearchEvents", () => {
},
],
startDateTime: "2030-05-15T16:00:00.000Z",
startDate: "2030-05-15",
startTime: "10:00:00",
status: EventStatus.PLANNED,
summary: "Event 3 summary",
tags: ["tag3"],
Expand Down

0 comments on commit 3966360

Please sign in to comment.