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/label.test.tsx | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 src/components/ui/label.test.tsx

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

diff --git a/src/components/ui/label.test.tsx b/src/components/ui/label.test.tsx
new file mode 100644
index 0000000..08031b6
--- /dev/null
+++ b/src/components/ui/label.test.tsx
@@ -0,0 +1,15 @@
+import { render, screen } from '@testing-library/react';
+import { describe, expect, test } from 'vitest';
+import { Label } from './label';
+
+describe('Label', () => {
+  test('renders label text and exposes data-slot', () => {
+    render(<Label htmlFor='email'>Email</Label>);
+
+    const label = screen.getByText('Email');
+    expect(label).toBeInTheDocument();
+    expect(label).toHaveAttribute('for', 'email');
+    expect(label).toHaveAttribute('data-slot', 'label');
+  });
+});
+
-- 
cgit v1.2.3

