mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
fix(core): Allow $evaluateExpression to resolve in task runners (#14641)
This commit is contained in:
@@ -1504,4 +1504,15 @@ describe('JsTaskRunner', () => {
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe('expressions', () => {
|
||||
it('should evaluate expressions with $evaluateExpression', async () => {
|
||||
const outcome = await executeForAllItems({
|
||||
code: "return { val: $evaluateExpression('{{ 1 + 1 }}') }",
|
||||
inputItems: [],
|
||||
});
|
||||
|
||||
expect(outcome.result).toEqual([wrapIntoJson({ val: 2 })]);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user