From 7e20170269a83f02798c4d4586ff2a520f0e2901 Mon Sep 17 00:00:00 2001 From: ygonz174 Date: Thu, 12 Mar 2026 14:26:08 +0000 Subject: [PATCH] fix of qlty smell with chatbot --- test/helpers/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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