@@ -3,7 +3,7 @@ import {format} from 'date-fns';
33import { deepEqual } from 'fast-equals' ;
44import type { OnyxCollection , OnyxEntry , OnyxInputValue } from 'react-native-onyx' ;
55import Onyx from 'react-native-onyx' ;
6- import OnyxProvider from '@components/OnyxListItemProvider' ;
6+ import OnyxListItemProvider from '@components/OnyxListItemProvider' ;
77import useReportWithTransactionsAndViolations from '@hooks/useReportWithTransactionsAndViolations' ;
88import {
99 addSplitExpenseField ,
@@ -5268,7 +5268,7 @@ describe('actions/IOU', () => {
52685268
52695269 expect ( canApproveIOU ( fakeReport , fakePolicy ) ) . toBeFalsy ( ) ;
52705270 // Then should return false when passing transactions directly as the third parameter instead of relying on Onyx data
5271- const { result} = renderHook ( ( ) => useReportWithTransactionsAndViolations ( reportID ) , { wrapper : OnyxProvider } ) ;
5271+ const { result} = renderHook ( ( ) => useReportWithTransactionsAndViolations ( reportID ) , { wrapper : OnyxListItemProvider } ) ;
52725272 await waitForBatchedUpdates ( ) ;
52735273 expect ( canApproveIOU ( result . current . at ( 0 ) as Report , fakePolicy , result . current . at ( 1 ) as Transaction [ ] ) ) . toBeFalsy ( ) ;
52745274 } ) ;
@@ -5324,7 +5324,7 @@ describe('actions/IOU', () => {
53245324
53255325 expect ( canApproveIOU ( fakeReport , fakePolicy ) ) . toBeFalsy ( ) ;
53265326 // Then should return false when passing transactions directly as the third parameter instead of relying on Onyx data
5327- const { result} = renderHook ( ( ) => useReportWithTransactionsAndViolations ( reportID ) , { wrapper : OnyxProvider } ) ;
5327+ const { result} = renderHook ( ( ) => useReportWithTransactionsAndViolations ( reportID ) , { wrapper : OnyxListItemProvider } ) ;
53285328 await waitForBatchedUpdates ( ) ;
53295329 expect ( canApproveIOU ( result . current . at ( 0 ) as Report , fakePolicy , result . current . at ( 1 ) as Transaction [ ] ) ) . toBeFalsy ( ) ;
53305330 } ) ;
@@ -5371,7 +5371,7 @@ describe('actions/IOU', () => {
53715371
53725372 expect ( canApproveIOU ( fakeReport , fakePolicy ) ) . toBeFalsy ( ) ;
53735373 // Then should return false when passing transactions directly as the third parameter instead of relying on Onyx data
5374- const { result} = renderHook ( ( ) => useReportWithTransactionsAndViolations ( reportID ) , { wrapper : OnyxProvider } ) ;
5374+ const { result} = renderHook ( ( ) => useReportWithTransactionsAndViolations ( reportID ) , { wrapper : OnyxListItemProvider } ) ;
53755375 await waitForBatchedUpdates ( ) ;
53765376 expect ( canApproveIOU ( result . current . at ( 0 ) as Report , fakePolicy , result . current . at ( 1 ) as Transaction [ ] ) ) . toBeFalsy ( ) ;
53775377 } ) ;
@@ -5423,7 +5423,7 @@ describe('actions/IOU', () => {
54235423
54245424 expect ( canApproveIOU ( fakeReport , fakePolicy ) ) . toBeTruthy ( ) ;
54255425 // Then should return true when passing transactions directly as the third parameter instead of relying on Onyx data
5426- const { result} = renderHook ( ( ) => useReportWithTransactionsAndViolations ( reportID ) , { wrapper : OnyxProvider } ) ;
5426+ const { result} = renderHook ( ( ) => useReportWithTransactionsAndViolations ( reportID ) , { wrapper : OnyxListItemProvider } ) ;
54275427 await waitForBatchedUpdates ( ) ;
54285428 expect ( canApproveIOU ( result . current . at ( 0 ) as Report , fakePolicy , result . current . at ( 1 ) as Transaction [ ] ) ) . toBeTruthy ( ) ;
54295429 } ) ;
0 commit comments