Skip to content

Commit

Permalink
fix: typo in multiple files upload (testing-library#405)
Browse files Browse the repository at this point in the history
  • Loading branch information
JavierMartinz authored and Jesu Castillo committed Oct 23, 2020
1 parent aab8cfa commit e96d113
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -249,7 +249,7 @@ test('upload multiple files', () => {
</div>,
)
const input = screen.getByLabelText(/upload file/i)
userEvent.upload(input, file)
userEvent.upload(input, files)

expect(input.files).toHaveLength(2)
expect(input.files[0]).toStrictEqual(files[0])
Expand Down

0 comments on commit e96d113

Please sign in to comment.