Skip to content

Commit 024ac51

Browse files
committed
fix: typecheck, tests after merging with main
1 parent 85f1c08 commit 024ac51

2 files changed

Lines changed: 1 addition & 23 deletions

File tree

Mobile-Expensify

tests/actions/IOU/MoneyRequestTest.ts

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1374,7 +1374,6 @@ describe('MoneyRequest', () => {
13741374
draftTransactionIDs: [baseParams.transactionID],
13751375
// eslint-disable-next-line @typescript-eslint/no-unsafe-type-assertion -- test fixture forwarding the real OptionData baseParams.participants already produced, with isDisabled overridden
13761376
participants: [{...baseParams.participants.at(0), isDisabled: true} as OptionData],
1377-
conciergeReportID: undefined,
13781377
delegateAccountID: undefined,
13791378
getCurrencySymbol,
13801379
});
@@ -1383,27 +1382,6 @@ describe('MoneyRequest', () => {
13831382
expect(baseParams.setDistanceRequestData).toHaveBeenCalled();
13841383
});
13851384

1386-
it('should pass reportDraft to getMoneyRequestParticipantOptions and mark participant as disabled', async () => {
1387-
let capturedParticipants: Participant[] = [];
1388-
handleMoneyRequestStepDistanceNavigation({
1389-
...baseParams,
1390-
iouType: CONST.IOU.TYPE.SUBMIT,
1391-
shouldSkipConfirmation: false,
1392-
isArchivedExpenseReport: false,
1393-
draftTransactionIDs: [baseParams.transactionID],
1394-
reportDraft: fakeReport,
1395-
setDistanceRequestData: (participants) => {
1396-
capturedParticipants = participants;
1397-
},
1398-
delegateAccountID: undefined,
1399-
getCurrencySymbol,
1400-
});
1401-
1402-
await waitForBatchedUpdates();
1403-
expect(capturedParticipants.length).toBeGreaterThan(0);
1404-
expect(capturedParticipants.at(0)).toMatchObject({isDisabled: true});
1405-
});
1406-
14071385
it('should forward a participant not marked as disabled to setDistanceRequestData', async () => {
14081386
let capturedParticipants: Array<Participant | OptionData> = [];
14091387
handleMoneyRequestStepDistanceNavigation({

0 commit comments

Comments
 (0)