Преглед на файлове

fix queryByTestId to getByTestId

moekumasaka преди 1 година
родител
ревизия
461ca6a542
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      apps/app/src/client/components/DescendantsPageListModal.spec.tsx

+ 1 - 1
apps/app/src/client/components/DescendantsPageListModal.spec.tsx

@@ -59,7 +59,7 @@ describe('DescendantsPageListModal.tsx', () => {
 
     it('should render CustomNavDropdown on devices smaller than lg', () => {
       render(<DescendantsPageListModal />);
-      expect(screen.queryByTestId('custom-nav-dropdown')).not.toBeNull();
+      expect(screen.getByTestId('custom-nav-dropdown')).not.toBeNull();
     });
 
     it('should not render CustomNavTab', () => {