From a1d2fdb3e1ef488d34e26fac313982be74356a56 Mon Sep 17 00:00:00 2001 From: chandel-aman Date: Thu, 30 Nov 2023 01:01:10 +0530 Subject: [PATCH] added missing test --- src/screens/Requests/Requests.test.tsx | 30 +------------------------- 1 file changed, 1 insertion(+), 29 deletions(-) diff --git a/src/screens/Requests/Requests.test.tsx b/src/screens/Requests/Requests.test.tsx index 36afda3a15..9b7385709d 100644 --- a/src/screens/Requests/Requests.test.tsx +++ b/src/screens/Requests/Requests.test.tsx @@ -1,12 +1,6 @@ import React from 'react'; import { MockedProvider } from '@apollo/react-testing'; -import { - act, - render, - screen, - fireEvent, - waitFor, -} from '@testing-library/react'; +import { act, render, screen, fireEvent } from '@testing-library/react'; import 'jest-localstorage-mock'; import 'jest-location-mock'; import { I18nextProvider } from 'react-i18next'; @@ -223,28 +217,6 @@ describe('Testing Request screen', () => { userEvent.type(screen.getByTestId(/searchByName/i), ''); }); - // test('Testing User data is not present', async () => { - // render( - // - // - // - // - // - // - // - // - // - // ); - - // await wait(); - - // const inputBox = screen.getByTestId(`searchByName`); - // expect(inputBox).toBeInTheDocument(); - - // fireEvent.change(inputBox, { target: { value: 'Nonexistent User' } }); - // expect(screen.getByText(/No results found for/i)).toBeTruthy(); - // }); - test('Does not display loading state when isLoading is false and usersData is present', async () => { // Mock the scenario where isLoading is false and there is some data in usersData render(