mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
test(core): Fix task runner test (#12801)
This commit is contained in:
parent
2020dc502f
commit
3fa0714c22
|
@ -98,7 +98,14 @@ export class JsTaskRunner extends TaskRunner {
|
||||||
const { jsRunnerConfig } = config;
|
const { jsRunnerConfig } = config;
|
||||||
|
|
||||||
const parseModuleAllowList = (moduleList: string) =>
|
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 allowedBuiltInModules = parseModuleAllowList(jsRunnerConfig.allowedBuiltInModules ?? '');
|
||||||
const allowedExternalModules = parseModuleAllowList(
|
const allowedExternalModules = parseModuleAllowList(
|
||||||
|
|
Loading…
Reference in a new issue