Преглед изворни кода

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', () => {