Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
FitseTLT committed Feb 6, 2025
1 parent 56ad086 commit 173526f
Showing 1 changed file with 7 additions and 27 deletions.
34 changes: 7 additions & 27 deletions tests/actions/IOUTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -538,33 +538,13 @@ describe('actions/IOU', () => {
it('trackExpense - categorizing tracked expense should set the quick action to REQUEST_MANUAL with the correct chatReportID', () => {
const chatReportID = generateReportID();
// When we categorize a tracked expense with a given chatReportID
trackExpense(
{reportID: chatReportID},
1000,
'USD',
'2024-10-30',
'merchant',
undefined,
0,
{accountID: 123456},
'comment',
true,
undefined,
'category',
'tag',
'taxCode',
0,
undefined,
undefined,
undefined,
undefined,
undefined,
undefined,
CONST.IOU.ACTION.CATEGORIZE,
'actionableWhisperReportActionID',
{actionName: 'IOU', reportActionID: 'linkedTrackedExpenseReportAction', created: '2024-10-30'},
'linkedTrackedExpenseReportID',
);
trackExpense({
report: {reportID: chatReportID},
isDraftPolicy: true,
transactionParams: {amount: 1000, currency: 'USD', created: '2024-10-30', merchant: 'merchant', comment: 'comment', category: 'category', tag: 'tag'},
participantParams: {participant: {accountID: 123456}, payeeAccountID: 0, payeeEmail: undefined},
action: CONST.IOU.ACTION.CATEGORIZE,
});

return waitForBatchedUpdates().then(
() =>
Expand Down

0 comments on commit 173526f

Please sign in to comment.