Skip to content

Commit

Permalink
fix lint issue with status tag (#571)
Browse files Browse the repository at this point in the history
  • Loading branch information
Assem-Hafez authored May 16, 2024
1 parent 519f921 commit 70f9a00
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 54 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,48 +23,48 @@ describe('WorkflowStatusTag', () => {
text: string;
link?: string;
}> = [
{
name: 'should render Running correctly',
workflowStatus: 'WORKFLOW_EXECUTION_STATUS_RUNNING',
text: 'Running',
},
{
name: 'should render Completed correctly',
workflowStatus: 'WORKFLOW_EXECUTION_CLOSE_STATUS_COMPLETED',
text: 'Completed',
},
{
name: 'should render Failed correctly',
workflowStatus: 'WORKFLOW_EXECUTION_CLOSE_STATUS_FAILED',
text: 'Failed',
},
{
name: 'should render Timed Out correctly',
workflowStatus: 'WORKFLOW_EXECUTION_CLOSE_STATUS_TIMED_OUT',
text: 'Timed Out',
},
{
name: 'should render Canceled correctly',
workflowStatus: 'WORKFLOW_EXECUTION_CLOSE_STATUS_CANCELED',
text: 'Canceled',
},
{
name: 'should render Terminated correctly',
workflowStatus: 'WORKFLOW_EXECUTION_CLOSE_STATUS_TERMINATED',
text: 'Terminated',
},
{
name: 'should render Continued As New correctly',
workflowStatus: 'WORKFLOW_EXECUTION_CLOSE_STATUS_CONTINUED_AS_NEW',
text: 'Continued As New',
},
{
name: 'should work with links correctly',
workflowStatus: 'WORKFLOW_EXECUTION_CLOSE_STATUS_CONTINUED_AS_NEW',
text: 'Continued As New',
link: 'mock_continued_workflow_link',
},
];
{
name: 'should render Running correctly',
workflowStatus: 'WORKFLOW_EXECUTION_STATUS_RUNNING',
text: 'Running',
},
{
name: 'should render Completed correctly',
workflowStatus: 'WORKFLOW_EXECUTION_CLOSE_STATUS_COMPLETED',
text: 'Completed',
},
{
name: 'should render Failed correctly',
workflowStatus: 'WORKFLOW_EXECUTION_CLOSE_STATUS_FAILED',
text: 'Failed',
},
{
name: 'should render Timed Out correctly',
workflowStatus: 'WORKFLOW_EXECUTION_CLOSE_STATUS_TIMED_OUT',
text: 'Timed Out',
},
{
name: 'should render Canceled correctly',
workflowStatus: 'WORKFLOW_EXECUTION_CLOSE_STATUS_CANCELED',
text: 'Canceled',
},
{
name: 'should render Terminated correctly',
workflowStatus: 'WORKFLOW_EXECUTION_CLOSE_STATUS_TERMINATED',
text: 'Terminated',
},
{
name: 'should render Continued As New correctly',
workflowStatus: 'WORKFLOW_EXECUTION_CLOSE_STATUS_CONTINUED_AS_NEW',
text: 'Continued As New',
},
{
name: 'should work with links correctly',
workflowStatus: 'WORKFLOW_EXECUTION_CLOSE_STATUS_CONTINUED_AS_NEW',
text: 'Continued As New',
link: 'mock_continued_workflow_link',
},
];

tests.forEach((test) => {
it(test.name, () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,18 @@ describe('WorkflowStatusTagIcon', () => {
link?: string;
expectedIcon?: string;
}> = [
{
name: 'should render Running start icon correctly',
kind: 'start',
status: 'WORKFLOW_EXECUTION_STATUS_RUNNING',
expectedIcon: 'running-spinner',
},
{
name: 'should return null if there is no icon configured',
kind: 'end',
status: 'WORKFLOW_EXECUTION_STATUS_RUNNING',
},
];
{
name: 'should render Running start icon correctly',
kind: 'start',
status: 'WORKFLOW_EXECUTION_STATUS_RUNNING',
expectedIcon: 'running-spinner',
},
{
name: 'should return null if there is no icon configured',
kind: 'end',
status: 'WORKFLOW_EXECUTION_STATUS_RUNNING',
},
];

tests.forEach((test) => {
it(test.name, () => {
Expand Down

0 comments on commit 70f9a00

Please sign in to comment.