Skip to content

Commit

Permalink
add async back
Browse files Browse the repository at this point in the history
  • Loading branch information
youngcw committed Jan 24, 2024
1 parent e4968b6 commit 90f77c2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/loot-core/src/mocks/budget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -590,10 +590,11 @@ export async function createTestBudget(handlers: Handlers) {
{ name: 'Roth IRA', offBudget: true },
];

// don't do this async or sort_order breaks
for (const account of accounts) {
account.id = await handlers['account-create'](account);
}
await runMutator(async () => {
for (const account of accounts) {
account.id = await handlers['account-create'](account);
}
});

const payees: Array<MockPayeeEntity> = [
{ name: 'Starting Balance' },
Expand Down

0 comments on commit 90f77c2

Please sign in to comment.