Add unit tests for role middleware
Some checks are pending
Docker Test / test (push) Waiting to run

This commit is contained in:
BibaBot 2026-03-17 07:07:36 +00:00
parent 7a9bf3199a
commit c294e2e9ae
5702 changed files with 465039 additions and 34 deletions

12
node_modules/formidable/dist/helpers/readBooleans.cjs generated vendored Normal file
View file

@ -0,0 +1,12 @@
'use strict';
const readBooleans = (fields, listOfBooleans) => {
// html forms do not send off at all
const fieldsWithBooleans = { ...fields };
listOfBooleans.forEach((key) => {
fieldsWithBooleans[key] = fields[key] === `on` || fields[key] === true;
});
return fieldsWithBooleans;
};
exports.readBooleans = readBooleans;