From 8a6a6712e7554f110b5ef951f270d88fd010e040 Mon Sep 17 00:00:00 2001
From: Bertrand Yuan <noreply@bertyuan.com>
Date: Thu, 26 Mar 2026 00:02:16 +0800
Subject: add more tests

---
 src/components/ui/skeleton.test.tsx | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 src/components/ui/skeleton.test.tsx

(limited to 'src/components/ui/skeleton.test.tsx')

diff --git a/src/components/ui/skeleton.test.tsx b/src/components/ui/skeleton.test.tsx
new file mode 100644
index 0000000..4459d77
--- /dev/null
+++ b/src/components/ui/skeleton.test.tsx
@@ -0,0 +1,16 @@
+import { render, screen } from '@testing-library/react';
+import { describe, expect, test } from 'vitest';
+import { Skeleton } from './skeleton';
+
+describe('Skeleton', () => {
+  test('renders with default and custom classes', () => {
+    render(<Skeleton data-testid='skeleton' className='h-4 w-20' />);
+
+    const skeleton = screen.getByTestId('skeleton');
+    expect(skeleton).toHaveAttribute('data-slot', 'skeleton');
+    expect(skeleton.className).toContain('animate-pulse');
+    expect(skeleton.className).toContain('h-4');
+    expect(skeleton.className).toContain('w-20');
+  });
+});
+
-- 
cgit v1.2.3

