mirror of
https://github.com/amitwh/markdown-converter.git
synced 2026-08-02 18:10:18 +05:30
feat(renderer): add shadcn textarea primitive
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import { describe, it, expect } from 'vitest';
|
||||
import { render, screen } from '@testing-library/react';
|
||||
import { Textarea } from '@/components/ui/textarea';
|
||||
|
||||
describe('Textarea', () => {
|
||||
it('renders a multi-line input', () => {
|
||||
render(<Textarea aria-label="notes" defaultValue="hello" />);
|
||||
const ta = screen.getByLabelText(/notes/i);
|
||||
expect(ta.tagName).toBe('TEXTAREA');
|
||||
expect(ta).toHaveValue('hello');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user