mirror of
https://github.com/amitwh/markdown-converter.git
synced 2026-08-03 02:11:07 +05:30
12 lines
431 B
TypeScript
12 lines
431 B
TypeScript
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');
|
|
});
|
|
}); |