From 2f48d55ba15bd261f5053de0e60eedd481458d73 Mon Sep 17 00:00:00 2001 From: fraul Date: Thu, 23 Mar 2023 15:48:54 -0400 Subject: [PATCH] Fix readme - allowEmpty belongs to the second options object Fix readme - allowEmpty belongs to the second options object --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6d5ef63..7a807cf 100644 --- a/README.md +++ b/README.md @@ -150,7 +150,7 @@ Normally you have to provide non-empty fixture file to test something. If your c ```javascript cy.get('[data-cy="file-input"]') - .attachFile({ filePath: 'empty.txt', allowEmpty: true }); + .attachFile({ filePath: 'empty.txt' }, { allowEmpty: true }); ``` ### Waiting for the upload to complete