Skip to content

Commit

Permalink
chore: updated AppHeader test file
Browse files Browse the repository at this point in the history
  • Loading branch information
shayan-deriv committed May 27, 2024
1 parent cea2988 commit 5b4d713
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/components/AppHeader/__tests__/AppHeader.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,6 @@ jest.mock('@deriv-com/ui', () => ({
useDevice: jest.fn(() => ({ isDesktop: true })),
}));

jest.mock('@deriv-com/translations', () => ({
useTranslations: jest.fn(() => ({ localize: jest.fn(text => text) })),
}));

describe('<AppHeader/>', () => {
window.open = jest.fn();

Expand All @@ -95,7 +91,6 @@ describe('<AppHeader/>', () => {
mockUseAuthData.mockReturnValue({ activeLoginid: '12345', logout: jest.fn() });

render(<AppHeader />);
screen.debug(undefined, Infinity);
const logoutButton = screen.getByRole('button', { name: 'Logout' });
const { logout } = mockUseAuthData();
expect(logoutButton).toBeInTheDocument();
Expand Down

0 comments on commit 5b4d713

Please sign in to comment.