Skip to content
This repository was archived by the owner on Dec 1, 2025. It is now read-only.

Commit 5196ed8

Browse files
committed
fixed tests, added required label prop to input fields
1 parent 105c5c4 commit 5196ed8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/forms/src/__tests__/form.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ describe('Form', () => {
2323
const handleSubmit = jest.fn();
2424
const { container, form } = formSetup({
2525
render: renderFields([
26-
{ name: 'firstName', type: 'text' },
27-
{ name: 'lastName', type: 'text' },
28-
{ name: 'email', type: 'email' },
26+
{ label: 'First Name', name: 'firstName', type: 'text' },
27+
{ label: 'Last Name', name: 'lastName', type: 'text' },
28+
{ label: 'Email', name: 'email', type: 'email' },
2929
]),
3030
onSubmit: handleSubmit,
3131
initialValues: {},

0 commit comments

Comments
 (0)