From 5b4d7135ad3ddf5ebdda7b0e638a44c9c4b42dec Mon Sep 17 00:00:00 2001 From: shayan khaleghparast Date: Mon, 27 May 2024 14:35:32 +0800 Subject: [PATCH] chore: updated AppHeader test file --- src/components/AppHeader/__tests__/AppHeader.spec.tsx | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/components/AppHeader/__tests__/AppHeader.spec.tsx b/src/components/AppHeader/__tests__/AppHeader.spec.tsx index 9262099e..10f69696 100644 --- a/src/components/AppHeader/__tests__/AppHeader.spec.tsx +++ b/src/components/AppHeader/__tests__/AppHeader.spec.tsx @@ -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('', () => { window.open = jest.fn(); @@ -95,7 +91,6 @@ describe('', () => { mockUseAuthData.mockReturnValue({ activeLoginid: '12345', logout: jest.fn() }); render(); - screen.debug(undefined, Infinity); const logoutButton = screen.getByRole('button', { name: 'Logout' }); const { logout } = mockUseAuthData(); expect(logoutButton).toBeInTheDocument();