Skip to content

Commit f5bab22

Browse files
committed
Fix test
1 parent ddfa634 commit f5bab22

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/unit/ReportUtilsTest.ts

+9
Original file line numberDiff line numberDiff line change
@@ -669,13 +669,21 @@ describe('ReportUtils', () => {
669669
owner: '',
670670
outputCurrency: '',
671671
isPolicyExpenseChatEnabled: false,
672+
employeeList: {
673+
[currentUserEmail]: {
674+
email: currentUserEmail,
675+
submitsTo: currentUserEmail,
676+
},
677+
},
672678
};
673679
Promise.all([
674680
Onyx.merge(`${ONYXKEYS.COLLECTION.POLICY}${paidPolicy.id}`, paidPolicy),
675681
Onyx.merge(`${ONYXKEYS.COLLECTION.REPORT}101`, {
676682
reportID: '101',
677683
chatType: CONST.REPORT.CHAT_TYPE.POLICY_EXPENSE_CHAT,
678684
isOwnPolicyExpenseChat: true,
685+
policyID: paidPolicy.id,
686+
ownerAccountID: currentUserAccountID,
679687
}),
680688
]).then(() => {
681689
const report = {
@@ -686,6 +694,7 @@ describe('ReportUtils', () => {
686694
parentReportID: '101',
687695
policyID: paidPolicy.id,
688696
managerID: currentUserAccountID,
697+
ownerAccountID: currentUserAccountID,
689698
};
690699
const moneyRequestOptions = ReportUtils.temporary_getMoneyRequestOptions(report, paidPolicy, [currentUserAccountID, participantsAccountIDs[0]]);
691700
expect(moneyRequestOptions.length).toBe(2);

0 commit comments

Comments
 (0)