Skip to content

Commit

Permalink
updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrpospiech committed Jun 24, 2024
1 parent df3e268 commit 09e150d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/uniforms/__suites__/LongTextField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export function testLongTextField(
schema: z.object({ x: z.string() }),
});
await userEvent.type(screen.getByRole('textbox'), '{Backspace}');
expect(onChange).toHaveBeenLastCalledWith('x', '');
expect(onChange).toHaveBeenLastCalledWith('x', undefined);
});

test('<LongTextField> - renders a label', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/uniforms/__suites__/TextField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export function testTextField(
schema: z.object({ x: z.string() }),
});
await userEvent.type(screen.getByRole('textbox'), '{Backspace}');
expect(onChange).toHaveBeenLastCalledWith('x', '');
expect(onChange).toHaveBeenLastCalledWith('x', undefined);
});

test('<TextField> - renders a label', () => {
Expand Down

0 comments on commit 09e150d

Please sign in to comment.