← All changes
|
backend/views/components/Analytics/__tests__/components/StatCard.test.jsx
+2
-2
1.4.7
→
1.4.21
View file →
| @@ -51,9 +51,9 @@ | ||
| 51 | 51 | expect(screen.queryByText('$45,230.50')).not.toBeInTheDocument(); |
| 52 | 52 | |
| 53 | 53 | // Should have pulse animation elements |
| 54 | 54 | const pulseElements = container.querySelectorAll( |
| 55 | - '.disco-animate-pulse' | |
| 55 | + '.disco\\:animate-pulse' | |
| 56 | 56 | ); |
| 57 | 57 | expect(pulseElements.length).toBeGreaterThanOrEqual(2); |
| 58 | 58 | }); |
| 59 | 59 | |
| @@ -60,9 +60,9 @@ | ||
| 60 | 60 | it('renders with different variants', () => { |
| 61 | 61 | const { container } = render( |
| 62 | 62 | <StatCard {...defaultProps} variant="campaigns" /> |
| 63 | 63 | ); |
| 64 | - expect(container.firstChild).toHaveClass('disco-bg-[#f3efff]'); | |
| 64 | + expect(container.firstChild).toHaveClass('disco:bg-[#f3efff]'); | |
| 65 | 65 | }); |
| 66 | 66 | |
| 67 | 67 | it('handles fallback value "--" correctly', () => { |
| 68 | 68 | render(<StatCard {...defaultProps} value="--" />); |