Skip to content

Commit 10a6c36

Browse files
committed
add unit test for archived report in getMoneyRequestOptions
1 parent d99543a commit 10a6c36

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

tests/unit/ReportUtilsTest.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1167,6 +1167,16 @@ describe('ReportUtils', () => {
11671167
expect(moneyRequestOptions.length).toBe(0);
11681168
});
11691169

1170+
it('its archived report', () => {
1171+
const report = {
1172+
...LHNTestUtils.getFakeReport(),
1173+
type: CONST.REPORT.TYPE.EXPENSE,
1174+
};
1175+
1176+
const moneyRequestOptions = temporary_getMoneyRequestOptions(report, undefined, [currentUserAccountID], true);
1177+
expect(moneyRequestOptions.length).toBe(0);
1178+
});
1179+
11701180
it('its trip room', () => {
11711181
const report = {
11721182
...LHNTestUtils.getFakeReport(),

0 commit comments

Comments
 (0)