@@ -370,7 +370,7 @@ describe('actions/Task', () => {
370370
371371 // When: Call createTaskAndNavigate
372372 createTaskAndNavigate ( {
373- parentReportID : mockParentReportID ,
373+ parentReport : { reportID : mockParentReportID } ,
374374 title : mockTitle ,
375375 description : mockDescription ,
376376 assigneeEmail : mockAssigneeEmail ,
@@ -416,7 +416,7 @@ describe('actions/Task', () => {
416416
417417 // When: Call createTaskAndNavigate without assignee chat report
418418 createTaskAndNavigate ( {
419- parentReportID : mockParentReportID ,
419+ parentReport : { reportID : mockParentReportID } ,
420420 title : mockTitle ,
421421 description : mockDescription ,
422422 assigneeEmail : mockAssigneeEmail ,
@@ -476,7 +476,7 @@ describe('actions/Task', () => {
476476
477477 // When: Call createTaskAndNavigate with markdown flag
478478 createTaskAndNavigate ( {
479- parentReportID : mockParentReportID ,
479+ parentReport : { reportID : mockParentReportID } ,
480480 title : mockTitle ,
481481 description : mockDescription ,
482482 assigneeEmail : mockAssigneeEmail ,
@@ -514,7 +514,7 @@ describe('actions/Task', () => {
514514
515515 // When: Call createTaskAndNavigate with default policy ID
516516 createTaskAndNavigate ( {
517- parentReportID : mockParentReportID ,
517+ parentReport : { reportID : mockParentReportID } ,
518518 title : mockTitle ,
519519 description : mockDescription ,
520520 assigneeEmail : mockAssigneeEmail ,
@@ -559,7 +559,7 @@ describe('actions/Task', () => {
559559
560560 // When: Call createTaskAndNavigate with assignee as current user
561561 createTaskAndNavigate ( {
562- parentReportID : mockParentReportID ,
562+ parentReport : { reportID : mockParentReportID } ,
563563 title : mockTitle ,
564564 description : mockDescription ,
565565 assigneeEmail : mockCurrentUserEmail ,
@@ -614,7 +614,7 @@ describe('actions/Task', () => {
614614
615615 // When: Call createTaskAndNavigate with undefined parent report ID
616616 createTaskAndNavigate ( {
617- parentReportID : undefined , // parentReportID is undefined
617+ parentReport : undefined ,
618618 title : mockTitle ,
619619 description : mockDescription ,
620620 assigneeEmail : mockAssigneeEmail ,
@@ -649,7 +649,7 @@ describe('actions/Task', () => {
649649
650650 // When: Call createTaskAndNavigate with empty quick action
651651 createTaskAndNavigate ( {
652- parentReportID : mockParentReportID ,
652+ parentReport : { reportID : mockParentReportID } ,
653653 title : mockTitle ,
654654 description : mockDescription ,
655655 assigneeEmail : mockAssigneeEmail ,
@@ -744,7 +744,7 @@ describe('actions/Task', () => {
744744 await waitForBatchedUpdatesWithAct ( ) ;
745745
746746 // When: Call completeTask
747- completeTask ( taskReport , false , parentReportAction ) ;
747+ completeTask ( taskReport , false , false , parentReportAction ) ;
748748
749749 await waitForBatchedUpdatesWithAct ( ) ;
750750
@@ -810,7 +810,7 @@ describe('actions/Task', () => {
810810 await waitForBatchedUpdatesWithAct ( ) ;
811811
812812 // When: Call completeTask
813- completeTask ( taskReport , false , undefined ) ;
813+ completeTask ( taskReport , false , false , undefined ) ;
814814
815815 await waitForBatchedUpdatesWithAct ( ) ;
816816
0 commit comments