Skip to content

Commit

Permalink
fix(hub-common): fix events 3 create and edit schema validations
Browse files Browse the repository at this point in the history
affects: @esri/hub-common

ISSUES CLOSED: 11676
  • Loading branch information
rweber-esri committed Nov 27, 2024
1 parent 73a1964 commit bfc26cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ describe("EventSchemaCreate", () => {
const res = buildSchema();
expect(getDefaultEventDatesAndTimesSpy).toHaveBeenCalledTimes(1);
expect(res).toEqual({
$async: true,
required: ["name", "startDate", "endDate"],
properties: {
name: ENTITY_NAME_SCHEMA,
Expand Down
10 changes: 1 addition & 9 deletions packages/common/test/events/_internal/EventSchemaEdit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,9 @@ import {
describe("EventSchemaEdit", () => {
describe("buildSchema", () => {
it("should return the expected ui schema", async () => {
const datesAndTimes = {
startDate: "2024-03-31",
startDateTime: new Date(),
startTime: "12:00:00",
endDate: "2024-03-31",
endDateTime: new Date(),
endTime: "14:00:00",
timeZone: "America/New_York",
};
const res = buildSchema();
expect(res).toEqual({
$async: true,
required: ["name", "startDate", "endDate", "timeZone"],
properties: {
name: ENTITY_NAME_SCHEMA,
Expand Down

0 comments on commit bfc26cc

Please sign in to comment.