Skip to content

Commit

Permalink
feat(hub-common): add time zone as required
Browse files Browse the repository at this point in the history
  • Loading branch information
juliannaeapicella committed May 10, 2024
1 parent d8915c2 commit f415cd6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/common/src/events/_internal/EventSchemaEdit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { getDefaultEventDatesAndTimes } from "./getDefaultEventDatesAndTimes";
export const buildSchema = (): IConfigurationSchema => {
const { startDate: minStartDate } = getDefaultEventDatesAndTimes();
return {
required: ["name", "description", "startDate", "endDate"],
required: ["name", "description", "startDate", "endDate", "timeZone"],
properties: {
name: ENTITY_NAME_SCHEMA,
description: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ describe("EventSchemaEdit", () => {
const res = buildSchema();
expect(getDefaultEventDatesAndTimesSpy).toHaveBeenCalledTimes(1);
expect(res).toEqual({
required: ["name", "description", "startDate", "endDate"],
required: ["name", "description", "startDate", "endDate", "timeZone"],
properties: {
name: ENTITY_NAME_SCHEMA,
description: {
Expand Down

0 comments on commit f415cd6

Please sign in to comment.