diff --git a/test/helpers/index.js b/test/helpers/index.js index e71a05edaa..f55b6b2b8d 100644 --- a/test/helpers/index.js +++ b/test/helpers/index.js @@ -89,7 +89,7 @@ helpers.connectSocketIO = function (res, csrf_token) { }); }; -helpers.uploadFile = async function (uploadEndPoint, filePath, data, jar, csrf_token) { +helpers.uploadFile = async function (uploadEndPoint, { filePath, data, jar, csrf_token }) { const mime = require('mime'); const form = new FormData(); const file = await fs.promises.readFile(filePath); @@ -187,4 +187,4 @@ helpers.createFolder = async function (path, folderName, jar, csrf_token) { }); }; -require('../../src/promisify')(helpers); +require('../../src/promisify')(helpers); \ No newline at end of file