refactor: Clean task runner code (#11368)

This commit is contained in:
Tomi Turtiainen
2024-10-23 14:34:08 +03:00
committed by GitHub
parent 74fc3889b9
commit f414e90993
2 changed files with 20 additions and 89 deletions

View File

@@ -189,6 +189,25 @@ describe('JsTaskRunner', () => {
['{ wf: $workflow }', { wf: { active: true, id: '1', name: 'Test Workflow' } }],
['$vars', { var: 'value' }],
],
'Node.js internal functions': [
['typeof Function', 'function'],
['typeof eval', 'function'],
['typeof setTimeout', 'function'],
['typeof setInterval', 'function'],
['typeof setImmediate', 'function'],
['typeof clearTimeout', 'function'],
['typeof clearInterval', 'function'],
['typeof clearImmediate', 'function'],
],
'JS built-ins': [
['typeof btoa', 'function'],
['typeof atob', 'function'],
['typeof TextDecoder', 'function'],
['typeof TextDecoderStream', 'function'],
['typeof TextEncoder', 'function'],
['typeof TextEncoderStream', 'function'],
['typeof FormData', 'function'],
],
};
for (const [groupName, tests] of Object.entries(testGroups)) {