Skip to content

Commit 400ade3

Browse files
committed
remove mock func
1 parent 6199da5 commit 400ade3

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

tests/actions/TaskTest.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,6 @@ jest.mock('@libs/API');
3636
jest.mock('@libs/Navigation/Navigation');
3737
jest.mock('@libs/Sound');
3838
jest.mock('@libs/ErrorUtils');
39-
// Do not mock ReportActionsUtils to avoid breaking other tests
40-
jest.mock('@libs/DateUtils');
41-
jest.mock('@libs/OptionsListUtils');
42-
jest.mock('@libs/PersonalDetailsUtils');
43-
jest.mock('@libs/LocalePhoneNumber');
44-
jest.mock('@libs/actions/Report');
4539
jest.mock('@libs/actions/Welcome');
4640
// Keep OnyxDerived real initialization below
4741
jest.mock('@components/Icon/Expensicons');
@@ -284,8 +278,8 @@ describe('actions/Task', () => {
284278
});
285279

286280
describe('getFinishOnboardingTaskOnyxData', () => {
287-
const parentReport: Report = {...getFakeReport(), type: CONST.REPORT.TYPE.CHAT};
288-
const taskReport: Report = {...getFakeReport(), type: CONST.REPORT.TYPE.TASK, ownerAccountID: 1, managerID: 2, parentReportID: parentReport.reportID, stateNum: CONST.REPORT.STATE_NUM.OPEN, statusNum: CONST.REPORT.STATUS_NUM.OPEN};
281+
const parentReport: Report = getFakeReport();
282+
const taskReport: Report = {...getFakeReport(), type: CONST.REPORT.TYPE.TASK, ownerAccountID: 1, managerID: 2, parentReportID: parentReport.reportID};
289283
const reportCollectionDataSet: ReportCollectionDataSet = {
290284
[`${ONYXKEYS.COLLECTION.REPORT}${taskReport.reportID}`]: taskReport,
291285
[`${ONYXKEYS.COLLECTION.REPORT}${parentReport.reportID}`]: parentReport,

0 commit comments

Comments
 (0)