Skip to content

Commit

Permalink
fix: add missing keys for enum
Browse files Browse the repository at this point in the history
  • Loading branch information
Devessier committed Aug 30, 2024
1 parent c3ad01b commit bb6e62f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ export const RIGHT_DRAWER_PAGE_ICONS = {
[RightDrawerPages.ViewCalendarEvent]: 'IconCalendarEvent',
[RightDrawerPages.ViewRecord]: 'Icon123',
[RightDrawerPages.Copilot]: 'IconSparkles',
[RightDrawerPages.Workflow]: 'IconSparkles',
[RightDrawerPages.WorkflowStepEdit]: 'IconSparkles',
[RightDrawerPages.WorkflowStepSelectAction]: 'IconSparkles',
};
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ export const RIGHT_DRAWER_PAGE_TITLES = {
[RightDrawerPages.ViewCalendarEvent]: 'Calendar Event',
[RightDrawerPages.ViewRecord]: 'Record Editor',
[RightDrawerPages.Copilot]: 'Copilot',
[RightDrawerPages.Workflow]: 'Workflow',
[RightDrawerPages.WorkflowStepEdit]: 'Workflow',
[RightDrawerPages.WorkflowStepSelectAction]: 'Workflow',
};
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,10 @@ describe('generateWorkflowDiagram', () => {
const stepNodes = result.nodes.slice(1);

for (const [index, step] of steps.entries()) {
expect(stepNodes[index].data.nodeType).toBe('action');
expect(stepNodes[index].data.label).toBe(step.name);
expect(stepNodes[index].data).toEqual({
nodeType: 'action',
label: step.name,
});
}
});

Expand Down

0 comments on commit bb6e62f

Please sign in to comment.