Skip to content

Commit fc9ff83

Browse files
fix: typo in multiple files upload (testing-library#405)
1 parent e5db332 commit fc9ff83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ test('upload multiple files', () => {
249249
</div>,
250250
)
251251
const input = screen.getByLabelText(/upload file/i)
252-
userEvent.upload(input, file)
252+
userEvent.upload(input, files)
253253

254254
expect(input.files).toHaveLength(2)
255255
expect(input.files[0]).toStrictEqual(files[0])

0 commit comments

Comments
 (0)