mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
refactor: Clean task runner code (#11368)
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user