Skip to content

Commit 587a3c5

Browse files
authored
Make date format clearer to understand (#703)
1 parent 311cb12 commit 587a3c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/dom-testing-library/api-events.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ fireEvent.change(getByLabelText(/picture/i), {
7070
// reflect the changed value.
7171

7272
// Invalid:
73-
fireEvent.change(input, { target: { value: '12/05/2020' } })
73+
fireEvent.change(input, { target: { value: '24/05/2020' } })
7474

7575
// Valid:
76-
fireEvent.change(input, { target: { value: '2020-05-12' } })
76+
fireEvent.change(input, { target: { value: '2020-05-24' } })
7777
```
7878

7979
**dataTransfer**: Drag events have a `dataTransfer` property that contains data

0 commit comments

Comments
 (0)