From e77580973576a862ef188079b669f3d77b10fc28 Mon Sep 17 00:00:00 2001 From: Muhammad Hamza <120543468+hamza-deriv@users.noreply.github.com> Date: Tue, 5 Dec 2023 18:16:28 +0800 Subject: [PATCH] chore: tweak the failed test because of content flag (#12019) --- .../appstore/src/modules/traders-hub/__tests__/index.spec.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/appstore/src/modules/traders-hub/__tests__/index.spec.tsx b/packages/appstore/src/modules/traders-hub/__tests__/index.spec.tsx index bbe3c8f1b4ad..64e6f3ef5424 100644 --- a/packages/appstore/src/modules/traders-hub/__tests__/index.spec.tsx +++ b/packages/appstore/src/modules/traders-hub/__tests__/index.spec.tsx @@ -1,5 +1,4 @@ import React from 'react'; -import { ContentFlag } from '@deriv/shared'; import { StoreProvider, mockStore } from '@deriv/stores'; import { render, screen } from '@testing-library/react'; import { APIProvider } from '@deriv/api'; @@ -55,7 +54,7 @@ describe('TradersHub', () => { it('should display disclaimer if the user is from low risk eu country', () => { render_container({ client: { is_logged_in: true }, - traders_hub: { content_flag: ContentFlag.LOW_RISK_CR_EU }, + traders_hub: { is_eu_user: true }, }); const disclaimer = screen.getByTestId('dt_traders_hub_disclaimer'); expect(disclaimer).toBeInTheDocument();