Download src/components/AnimatedLogo.test.tsx from sitcod3/modul-s: direct link, hf CLI and curl.
- Browser
- Download file 649 Bytes
-
https://huggingface.co/spaces/sitcod3/modul-s/resolve/main/src/components/AnimatedLogo.test.tsx
- Command line
-
hf download hf://spaces/sitcod3/modul-s/src/components/AnimatedLogo.test.tsx
-
curl -L -o AnimatedLogo.test.tsx https://huggingface.co/spaces/sitcod3/modul-s/resolve/main/src/components/AnimatedLogo.test.tsx
649 Bytes
| import { render } from '@testing-library/react'; | |
| import { describe, it, expect } from 'vitest'; | |
| import AnimatedLogo from './AnimatedLogo'; | |
| describe('AnimatedLogo', () => { | |
| it('renders SVG elements successfully', () => { | |
| const { container } = render(<AnimatedLogo className="test-class" />); | |
| const svg = container.querySelector('svg'); | |
| expect(svg).toBeDefined(); | |
| expect(svg?.classList.contains('test-class')).toBe(true); | |
| // Check for gradients and paths | |
| expect(container.querySelector('linearGradient#crypto-grad-1')).toBeDefined(); | |
| expect(container.querySelector('path')).toBeDefined(); | |
| }); | |
| }); | |