Skip to content

Commit

Permalink
chore: tweak the failed test because of content flag (binary-com#12019)
Browse files Browse the repository at this point in the history
  • Loading branch information
hamza-deriv committed Dec 5, 2023
1 parent 7bc29f4 commit e775809
Showing 1 changed file with 1 addition and 2 deletions.
@@ -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';
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit e775809

Please sign in to comment.