Skip to content

Commit

Permalink
feat(hub-common): test updates
Browse files Browse the repository at this point in the history
  • Loading branch information
juliannaeapicella committed May 10, 2024
1 parent 3de4687 commit 0374a18
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/common/test/events/_internal/EventSchemaEdit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ describe("EventSchemaEdit", () => {
type: "boolean",
default: false,
},
timeZone: {
type: "string",
},
onlineUrl: {
type: "string",
},
Expand Down
23 changes: 23 additions & 0 deletions packages/common/test/events/_internal/EventUiSchemaEdit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,29 @@ describe("EventUiSchemaEdit", () => {
],
},
},
{
labelKey: `myI18nScope.fields.timeZone.label`,
scope: "/properties/timeZone",
type: "Control",
rule: {
condition: {
scope: "/properties/isAllDay",
schema: { const: false },
},
effect: UiSchemaRuleEffects.SHOW,
},
options: {
control: "hub-field-input-time-zone",
messages: [
{
type: "ERROR",
keyword: "required",
icon: true,
labelKey: `myI18nScope.fields.timeZone.requiredError`,
},
],
},
},
],
},
{
Expand Down

0 comments on commit 0374a18

Please sign in to comment.