Skip to content

Commit

Permalink
use merge instead of multi set
Browse files Browse the repository at this point in the history
  • Loading branch information
mkzie2 committed Dec 2, 2024
1 parent 7c20443 commit ffc90fd
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions tests/ui/LHNItemsPresence.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -218,15 +218,8 @@ describe('SidebarLinksData', () => {
const transaction = LHNTestUtils.getFakeTransaction(expenseReport.reportID);
const transactionViolation = createFakeTransactionViolation();

await Onyx.multiSet({
[ONYXKEYS.COLLECTION.REPORT]: {
[expenseReport.reportID]: expenseReport,
},
[ONYXKEYS.COLLECTION.TRANSACTION]: {
[transaction.transactionID]: transaction,
},
});

await Onyx.merge(`${ONYXKEYS.COLLECTION.REPORT}${expenseReport.reportID}`, expenseReport);
await Onyx.merge(`${ONYXKEYS.COLLECTION.TRANSACTION}${transaction.transactionID}`, transaction);
await Onyx.merge(`${ONYXKEYS.COLLECTION.TRANSACTION_VIOLATIONS}${transaction.transactionID}`, [transactionViolation]);

// And the draft icon should be shown, indicating there is unsent content.
Expand Down

0 comments on commit ffc90fd

Please sign in to comment.