fix(core): Allow index as top-level item key for Code node (#12469)

This commit is contained in:
Iván Ovejero
2025-01-06 15:03:36 +01:00
committed by GitHub
parent 3109de6073
commit 1b9100032f
4 changed files with 34 additions and 2 deletions

View File

@@ -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 } }],