Skip to content

Commit e8cfccb

Browse files
committed
Fix guided setup test lint assertion
1 parent 3d7e90f commit e8cfccb

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

tests/actions/ReportTest.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7605,8 +7605,7 @@ describe('actions/Report', () => {
76057605
const result = Report.getGuidedSetupDataForOpenReport(introSelected);
76067606

76077607
expect(result).toBeDefined();
7608-
const guidedSetupData = JSON.parse(result?.guidedSetupData ?? '[]') as Array<{type: string; task?: string}>;
7609-
expect(guidedSetupData.some((item) => item.type === 'task' && item.task === CONST.ONBOARDING_TASK_TYPE.REVIEW_WORKSPACE_SETTINGS)).toBe(true);
7608+
expect(result?.guidedSetupData).toContain(CONST.ONBOARDING_TASK_TYPE.REVIEW_WORKSPACE_SETTINGS);
76107609
expect(result?.optimisticData.find((update) => update.key === ONYXKEYS.NVP_ONBOARDING)).toBeUndefined();
76117610
});
76127611

0 commit comments

Comments
 (0)