File size: 649 Bytes
b8dc816
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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();
  });
});