Skip to content

Commit cf3f60d

Browse files
committed
add more test
1 parent c460a3b commit cf3f60d

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

tests/actions/ReportTest.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4317,6 +4317,20 @@ describe('actions/Report', () => {
43174317

43184318
expect(mockNavigation.goBack).toHaveBeenCalled();
43194319
});
4320+
4321+
it('should pass isSelfTourViewed to navigateToConciergeChat', async () => {
4322+
await Onyx.set(ONYXKEYS.CONCIERGE_REPORT_ID, CONCIERGE_REPORT_ID);
4323+
const testReport = createRandomReport(Number(REPORT_ID), undefined);
4324+
await Onyx.set(`${ONYXKEYS.COLLECTION.REPORT}${REPORT_ID}`, testReport);
4325+
await waitForBatchedUpdates();
4326+
4327+
Report.navigateToConciergeChatAndDeleteReport(REPORT_ID, CONCIERGE_REPORT_ID, TEST_USER_ACCOUNT_ID, INTRO_SELECTED, true, undefined);
4328+
4329+
await waitForBatchedUpdates();
4330+
4331+
expect(mockNavigation.goBack).toHaveBeenCalled();
4332+
expect(mockNavigation.navigate).toHaveBeenCalled();
4333+
});
43204334
});
43214335

43224336
describe('navigateToAndOpenChildReport', () => {

0 commit comments

Comments
 (0)