Spaces:
Sleeping
Sleeping
Download src/components/GeometricBackground.test.tsx from sitcod3/BRIDGE_Modul-S_prod: direct link, hf CLI and curl.
- Browser
- Download file 548 Bytes
-
https://huggingface.co/spaces/sitcod3/BRIDGE_Modul-S_prod/resolve/main/src/components/GeometricBackground.test.tsx
- Command line
-
hf download hf://spaces/sitcod3/BRIDGE_Modul-S_prod/src/components/GeometricBackground.test.tsx
-
curl -L -o GeometricBackground.test.tsx https://huggingface.co/spaces/sitcod3/BRIDGE_Modul-S_prod/resolve/main/src/components/GeometricBackground.test.tsx
548 Bytes
| import { render } from '@testing-library/react'; | |
| import { describe, it, expect } from 'vitest'; | |
| import GeometricBackground from './GeometricBackground'; | |
| describe('GeometricBackground', () => { | |
| it('renders without crashing when mounted', () => { | |
| const { container } = render(<GeometricBackground />); | |
| // The component uses useEffect to set mounted=true, so it might render null initially. | |
| // However, in tests without strict act() wrappers for the initial effect, it might return empty. | |
| expect(container).toBeDefined(); | |
| }); | |
| }); | |