diff --git a/README.md b/README.md index d06ce199..b2494d87 100644 --- a/README.md +++ b/README.md @@ -249,7 +249,7 @@ test('upload multiple files', () => { , ) 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])