Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSonOfThomp committed Dec 15, 2023
1 parent 6d74892 commit 2418791
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/date-picker/src/DatePicker/DatePicker.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2156,13 +2156,13 @@ describe('packages/date-picker', () => {
});

describe('typing new characters', () => {
test.skip('if the resulting value is valid, appends to the segment value', async () => {
test('even if the resulting value is valid, keeps the input as-is', async () => {
const { monthInput } = renderDatePicker({});
userEvent.type(monthInput, '1');
userEvent.tab();
await waitFor(() => expect(monthInput).toHaveValue('01'));
userEvent.type(monthInput, '2');
await waitFor(() => expect(monthInput).toHaveValue('12'));
await waitFor(() => expect(monthInput).toHaveValue('01'));
});

test('if the resulting value is not valid, keeps the input as-is', async () => {
Expand Down

0 comments on commit 2418791

Please sign in to comment.