sitcod3 commited on
Commit
4e65e3f
·
verified ·
1 Parent(s): 909007e

Upload src/components/GeometricBackground.test.tsx with huggingface_hub

Browse files
src/components/GeometricBackground.test.tsx ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { render } from '@testing-library/react';
2
+ import { describe, it, expect } from 'vitest';
3
+ import GeometricBackground from './GeometricBackground';
4
+
5
+ describe('GeometricBackground', () => {
6
+ it('renders without crashing when mounted', () => {
7
+ const { container } = render(<GeometricBackground />);
8
+ // The component uses useEffect to set mounted=true, so it might render null initially.
9
+ // However, in tests without strict act() wrappers for the initial effect, it might return empty.
10
+ expect(container).toBeDefined();
11
+ });
12
+ });