@@ -53,7 +53,7 @@ jest.mock('@src/libs/Navigation/Navigation', () => ({
5353 goBack : jest . fn ( ) ,
5454} ) ) ;
5555
56- // Pass-through spy so behavior is unchanged but the call args (incl. currentUserAccountID) are assertable .
56+ // Pass-through spy so behavior is unchanged but the call args (incl. currentUserAccountID) can be asserted .
5757jest . mock ( '@libs/shouldUseDefaultExpensePolicy' , ( ) => {
5858 const actual = jest . requireActual < { default : typeof shouldUseDefaultExpensePolicy } > ( '@libs/shouldUseDefaultExpensePolicy' ) ;
5959 return {
@@ -66,7 +66,7 @@ jest.mock('@libs/getCurrentPosition');
6666
6767// Fire executeWrite synchronously so downstream writes can be asserted.
6868jest . mock ( '@libs/Navigation/helpers/submitWithDismissFirst' , ( ) => jest . requireActual < typeof SubmitWithDismissFirstMock > ( '../../__mocks__/submitWithDismissFirst' ) ) ;
69- // Cleanup helpers are spies so the move-from-track cleanup-id contract is assertable .
69+ // Cleanup helpers are spies so the move-from-track cleanup-id contract can be asserted .
7070const mockCleanupAndNavigateAfterExpenseCreate = jest . fn ( ) ;
7171const mockCleanupAfterExpenseCreate = jest . fn ( ) ;
7272jest . mock ( '@libs/Navigation/helpers/cleanupAndNavigateAfterExpenseCreate' , ( ) => ( {
@@ -1299,7 +1299,7 @@ describe('MoneyRequest', () => {
12991299 await Onyx . set ( ONYXKEYS . SESSION , { accountID : TEST_USER_ACCOUNT_ID } ) ;
13001300 await Onyx . set ( `${ ONYXKEYS . COLLECTION . POLICY } ${ policy . id } ` , policy ) ;
13011301
1302- expect ( shouldUseDefaultExpensePolicy ( CONST . IOU . TYPE . CREATE , policy , 100 , undefined , pastDate ) ) . toBe ( false ) ;
1302+ expect ( shouldUseDefaultExpensePolicy ( CONST . IOU . TYPE . CREATE , policy , 100 , undefined , pastDate , TEST_USER_ACCOUNT_ID ) ) . toBe ( false ) ;
13031303
13041304 await Onyx . clear ( ) ;
13051305 } ) ;
0 commit comments