Skip to content

Commit

Permalink
removed autofield test
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrpospiech committed Feb 16, 2024
1 parent 87aada5 commit 0d5f55e
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions packages/uniforms/__suites__/ListItemField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,6 @@ export function testListItemField(ListItemField: ComponentType<any>) {
expect(screen.getByRole('button')).toBeInTheDocument();
});

test('<ListItemField> - renders AutoField', () => {
const AutoField = jest.fn(() => null) as React.FC<any>;

renderWithZod({
element: (
<ListItemField name="field">
<AutoField />
</ListItemField>
),
schema: z.object({
field: z.string(),
}),
});

expect(AutoField).toHaveBeenCalledTimes(1);
});

test('<ListItemField> - renders children if specified', () => {
const Child = jest.fn(() => <div />) as React.FC<any>;

Expand Down

0 comments on commit 0d5f55e

Please sign in to comment.