mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix(core): Allow index as top-level item key for Code node (#12469)
This commit is contained in:
@@ -40,6 +40,13 @@ describe('Code Node unit test', () => {
|
||||
[{ json: { count: 42 } }],
|
||||
[{ json: { count: 42 } }],
|
||||
],
|
||||
|
||||
// temporarily allowed until refactored out
|
||||
'should handle an index key': [
|
||||
[{ json: { count: 42 }, index: 0 }],
|
||||
[{ json: { count: 42 }, index: 0 }],
|
||||
],
|
||||
|
||||
'should handle when returned data is not an array': [
|
||||
{ json: { count: 42 } },
|
||||
[{ json: { count: 42 } }],
|
||||
|
||||
Reference in New Issue
Block a user