Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
joel-jeremy committed Oct 19, 2024
1 parent 5ed9bf7 commit 8fbab38
Showing 1 changed file with 24 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import userEvent from '@testing-library/user-event';
import { format as formatDate, parse as parseDate } from 'date-fns';
import { v4 as uuidv4 } from 'uuid';

import { SchedulesProvider } from 'loot-core/src/client/data-hooks/schedules';
import { SpreadsheetProvider } from 'loot-core/src/client/SpreadsheetProvider';
import {
generateTransaction,
Expand Down Expand Up @@ -145,27 +146,29 @@ function LiveTransactionTable(props) {
<TestProvider>
<ResponsiveProvider>
<SpreadsheetProvider>
<SelectedProviderWithItems
name="transactions"
items={transactions}
fetchAllIds={() => transactions.map(t => t.id)}
>
<SplitsExpandedProvider>
<TransactionTable
{...props}
transactions={transactions}
loadMoreTransactions={() => {}}
commonPayees={[]}
payees={payees}
addNotification={n => console.log(n)}
onSave={onSave}
onSplit={onSplit}
onAdd={onAdd}
onAddSplit={onAddSplit}
onCreatePayee={onCreatePayee}
/>
</SplitsExpandedProvider>
</SelectedProviderWithItems>
<SchedulesProvider>
<SelectedProviderWithItems
name="transactions"
items={transactions}
fetchAllIds={() => transactions.map(t => t.id)}
>
<SplitsExpandedProvider>
<TransactionTable
{...props}
transactions={transactions}
loadMoreTransactions={() => {}}
commonPayees={[]}
payees={payees}
addNotification={n => console.log(n)}
onSave={onSave}
onSplit={onSplit}
onAdd={onAdd}
onAddSplit={onAddSplit}
onCreatePayee={onCreatePayee}
/>
</SplitsExpandedProvider>
</SelectedProviderWithItems>
</SchedulesProvider>
</SpreadsheetProvider>
</ResponsiveProvider>
</TestProvider>
Expand Down

0 comments on commit 8fbab38

Please sign in to comment.