mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
test(core): Fix task runner test (#12801)
This commit is contained in:
@@ -98,7 +98,14 @@ export class JsTaskRunner extends TaskRunner {
|
||||
const { jsRunnerConfig } = config;
|
||||
|
||||
const parseModuleAllowList = (moduleList: string) =>
|
||||
moduleList === '*' ? '*' : new Set(moduleList.split(',').map((x) => x.trim()));
|
||||
moduleList === '*'
|
||||
? '*'
|
||||
: new Set(
|
||||
moduleList
|
||||
.split(',')
|
||||
.map((x) => x.trim())
|
||||
.filter((x) => x !== ''),
|
||||
);
|
||||
|
||||
const allowedBuiltInModules = parseModuleAllowList(jsRunnerConfig.allowedBuiltInModules ?? '');
|
||||
const allowedExternalModules = parseModuleAllowList(
|
||||
|
||||
Reference in New Issue
Block a user