From 233e5e5aed3b255e1ab2c322409e47d040ce03f6 Mon Sep 17 00:00:00 2001 From: Sandeep Date: Wed, 2 Oct 2024 17:24:26 +0800 Subject: [PATCH] test: :fire: updated test suit for dashboard comp --- .../__tests__/{AppManager.test.tsx => dashboard.test.tsx} | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) rename src/features/dashboard/__tests__/{AppManager.test.tsx => dashboard.test.tsx} (95%) diff --git a/src/features/dashboard/__tests__/AppManager.test.tsx b/src/features/dashboard/__tests__/dashboard.test.tsx similarity index 95% rename from src/features/dashboard/__tests__/AppManager.test.tsx rename to src/features/dashboard/__tests__/dashboard.test.tsx index 28afa0f91..3346a7321 100644 --- a/src/features/dashboard/__tests__/AppManager.test.tsx +++ b/src/features/dashboard/__tests__/dashboard.test.tsx @@ -3,7 +3,7 @@ import useAuthContext from '@site/src/hooks/useAuthContext'; import useApiToken from '@site/src/hooks/useApiToken'; import useAppManager from '@site/src/hooks/useAppManager'; import { render, screen } from '@testing-library/react'; -import { AppManager } from '..'; +import Dashboard from '../dashboard'; import { useTable } from 'react-table'; jest.mock('@site/src/hooks/useAuthContext'); @@ -54,7 +54,7 @@ describe('AppManager', () => { is_logged_in: false, })); - render(); + render(); const login = screen.getByText( /Log in to your Deriv account to get the API token and start using our API./i, @@ -66,7 +66,7 @@ describe('AppManager', () => { mockUseAuthContext.mockImplementation(() => ({ is_logged_in: true, })); - render(); + render(); const loader = screen.getByTestId('dt_spinner'); expect(loader).toBeInTheDocument(); }); @@ -85,7 +85,7 @@ describe('AppManager', () => { tokens: [], })); - render(); + render(); const dashboard_header = screen.getByText( /Start using Deriv API to bring custom integrations and powerful automation to your apps./i, );