Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrpospiech committed Feb 15, 2024
1 parent 3229557 commit 81bf516
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/uniforms/__suites__/QuickForm.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { render, screen } from '@testing-library/react';
import { render } from '@testing-library/react';
import React from 'react';
import type { QuickForm as QuickFormType } from 'uniforms';
import { ZodBridge } from 'uniforms-bridge-zod';
Expand All @@ -23,8 +23,8 @@ export function testQuickForm(QuickForm: QuickFormType) {
const bridge = new ZodBridge({ schema });

test('<QuickForm> - renders', () => {
render(<QuickForm data-testid="form" schema={bridge} />);
expect(screen.getByTestId('form')).toBeInTheDocument();
const { container } = render(<QuickForm schema={bridge} />);
expect(container.getElementsByTagName('form').length).toBe(1);
});

test('<QuickForm> - when rendered with custom fields, renders `AutoField` for each field', () => {
Expand Down

0 comments on commit 81bf516

Please sign in to comment.