mirror of
https://github.com/amitwh/markdown-converter.git
synced 2026-08-02 18:10:18 +05:30
style: run prettier formatter over src and tests
This commit is contained in:
@@ -21,4 +21,4 @@ describe('Button', () => {
|
||||
const btn = screen.getByRole('button');
|
||||
expect(btn.className).toContain('bg-primary');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -10,4 +10,4 @@ describe('Checkbox', () => {
|
||||
await userEvent.click(screen.getByRole('checkbox', { name: /agree/i }));
|
||||
expect(onCheckedChange).toHaveBeenCalledWith(true);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -27,4 +27,4 @@ describe('Dialog', () => {
|
||||
expect(screen.getByRole('dialog')).toBeInTheDocument();
|
||||
expect(screen.getByText(/title/i)).toBeInTheDocument();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -3,7 +3,14 @@ import { render, screen } from '@testing-library/react';
|
||||
import { useForm, FormProvider } from 'react-hook-form';
|
||||
import { z } from 'zod';
|
||||
import { zodResolver } from '@hookform/resolvers/zod';
|
||||
import { Form, FormField, FormItem, FormLabel, FormControl, FormMessage } from '@/components/ui/form';
|
||||
import {
|
||||
Form,
|
||||
FormField,
|
||||
FormItem,
|
||||
FormLabel,
|
||||
FormControl,
|
||||
FormMessage,
|
||||
} from '@/components/ui/form';
|
||||
import { Input } from '@/components/ui/input';
|
||||
|
||||
const schema = z.object({ name: z.string().min(2) });
|
||||
@@ -39,4 +46,4 @@ describe('Form', () => {
|
||||
render(<Harness />);
|
||||
expect(screen.getByLabelText(/name/i)).toBeInTheDocument();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -11,4 +11,4 @@ describe('Input', () => {
|
||||
await userEvent.type(input, 'a');
|
||||
expect(onChange).toHaveBeenCalled();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -26,4 +26,4 @@ describe('Select', () => {
|
||||
await userEvent.click(screen.getByRole('combobox', { name: /fruit/i }));
|
||||
expect(screen.getByRole('option', { name: /apple/i })).toBeInTheDocument();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -26,4 +26,4 @@ describe('Sheet', () => {
|
||||
await userEvent.click(screen.getByRole('button', { name: /open/i }));
|
||||
expect(screen.getByRole('dialog')).toBeInTheDocument();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -14,4 +14,4 @@ describe('Toaster', () => {
|
||||
// but the test should not throw
|
||||
expect(container).toBeDefined();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -10,4 +10,4 @@ describe('Switch', () => {
|
||||
await userEvent.click(screen.getByRole('switch', { name: /airplane/i }));
|
||||
expect(onCheckedChange).toHaveBeenCalledWith(true);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -19,4 +19,4 @@ describe('Tabs', () => {
|
||||
await userEvent.click(screen.getByRole('tab', { name: /two/i }));
|
||||
expect(screen.getByText(/content two/i)).toBeVisible();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -9,4 +9,4 @@ describe('Textarea', () => {
|
||||
expect(ta.tagName).toBe('TEXTAREA');
|
||||
expect(ta).toHaveValue('hello');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user