Skip to content

Commit 4bb453f

Browse files
Fix GettingStartedSection tests by adding policy type to mock data
1 parent a886a1f commit 4bb453f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/unit/pages/home/GettingStartedSection/GettingStartedSectionTest.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ async function setManageTeamUserState(overrides?: {
6060
const policyData: Record<string, unknown> = {
6161
id: TEST_POLICY_ID,
6262
name: 'Test Workspace',
63+
type: CONST.POLICY.TYPE.TEAM,
6364
areCompanyCardsEnabled: overrides?.areCompanyCardsEnabled ?? true,
6465
areRulesEnabled: overrides?.areRulesEnabled ?? true,
6566
};
@@ -121,6 +122,7 @@ describe('GettingStartedSection', () => {
121122
{
122123
id: TEST_POLICY_ID,
123124
name: 'Test Workspace',
125+
type: CONST.POLICY.TYPE.TEAM,
124126
areCompanyCardsEnabled: true,
125127
areRulesEnabled: true,
126128
} as never,

0 commit comments

Comments
 (0)