@@ -72,7 +72,7 @@ describe('getSecondaryAction', () => {
7272 transactionID : TRANSACTION_ID ,
7373 } as unknown as Transaction ;
7474
75- const result = getSecondaryReportActions ( { report, chatReport, reportTransactions : [ transaction ] , violations : { } , policy, canUseRetractNewDot : true } ) ;
75+ const result = getSecondaryReportActions ( { report, chatReport, reportTransactions : [ transaction ] , violations : { } , policy} ) ;
7676 expect ( result . includes ( CONST . REPORT . SECONDARY_ACTIONS . ADD_EXPENSE ) ) . toBe ( true ) ;
7777 } ) ;
7878
@@ -491,7 +491,7 @@ describe('getSecondaryAction', () => {
491491 await Onyx . merge ( ONYXKEYS . SESSION , { email : EMPLOYEE_EMAIL , accountID : EMPLOYEE_ACCOUNT_ID } ) ;
492492 await Onyx . merge ( ONYXKEYS . PERSONAL_DETAILS_LIST , personalDetails ) ;
493493
494- const result = getSecondaryReportActions ( { report, chatReport, reportTransactions : [ ] , violations : { } , policy, policies, canUseRetractNewDot : true } ) ;
494+ const result = getSecondaryReportActions ( { report, chatReport, reportTransactions : [ ] , violations : { } , policy, policies} ) ;
495495 expect ( result . includes ( CONST . REPORT . SECONDARY_ACTIONS . CHANGE_WORKSPACE ) ) . toBe ( true ) ;
496496 } ) ;
497497
@@ -524,7 +524,7 @@ describe('getSecondaryAction', () => {
524524 await Onyx . merge ( ONYXKEYS . SESSION , { email : EMPLOYEE_EMAIL , accountID : EMPLOYEE_ACCOUNT_ID } ) ;
525525 await Onyx . merge ( ONYXKEYS . PERSONAL_DETAILS_LIST , personalDetails ) ;
526526
527- const result = getSecondaryReportActions ( { report, chatReport, reportTransactions : [ ] , violations : { } , policy, policies, canUseRetractNewDot : true } ) ;
527+ const result = getSecondaryReportActions ( { report, chatReport, reportTransactions : [ ] , violations : { } , policy, policies} ) ;
528528 expect ( result . includes ( CONST . REPORT . SECONDARY_ACTIONS . CHANGE_WORKSPACE ) ) . toBe ( true ) ;
529529 } ) ;
530530
@@ -577,7 +577,6 @@ describe('getSecondaryAction', () => {
577577 violations : { } ,
578578 policy : oldPolicy ,
579579 policies,
580- canUseRetractNewDot : true ,
581580 } ) ;
582581 expect ( result . includes ( CONST . REPORT . SECONDARY_ACTIONS . CHANGE_WORKSPACE ) ) . toBe ( true ) ;
583582 } ) ;
@@ -624,7 +623,7 @@ describe('getSecondaryAction', () => {
624623 await Onyx . merge ( ONYXKEYS . SESSION , { email : APPROVER_EMAIL , accountID : APPROVER_ACCOUNT_ID } ) ;
625624 await Onyx . merge ( ONYXKEYS . PERSONAL_DETAILS_LIST , personalDetails ) ;
626625
627- const result = getSecondaryReportActions ( { report, chatReport, reportTransactions : [ ] , violations : { } , policy, policies, canUseRetractNewDot : true } ) ;
626+ const result = getSecondaryReportActions ( { report, chatReport, reportTransactions : [ ] , violations : { } , policy, policies} ) ;
628627 expect ( result . includes ( CONST . REPORT . SECONDARY_ACTIONS . CHANGE_WORKSPACE ) ) . toBe ( true ) ;
629628 } ) ;
630629
@@ -672,7 +671,7 @@ describe('getSecondaryAction', () => {
672671 await Onyx . merge ( ONYXKEYS . SESSION , { email : ADMIN_EMAIL , accountID : ADMIN_ACCOUNT_ID } ) ;
673672 await Onyx . merge ( ONYXKEYS . PERSONAL_DETAILS_LIST , personalDetails ) ;
674673
675- const result = getSecondaryReportActions ( { report, chatReport, reportTransactions : [ ] , violations : { } , policy, policies, canUseRetractNewDot : true } ) ;
674+ const result = getSecondaryReportActions ( { report, chatReport, reportTransactions : [ ] , violations : { } , policy, policies} ) ;
676675 expect ( result . includes ( CONST . REPORT . SECONDARY_ACTIONS . CHANGE_WORKSPACE ) ) . toBe ( true ) ;
677676 } ) ;
678677
0 commit comments