mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
fix(Rename Keys Node): Add a warning for regex that affect performance (#18911)
This commit is contained in:
@@ -331,6 +331,20 @@ export class NodeTestHarness {
|
||||
});
|
||||
|
||||
const msg = `Equality failed for "${testData.description}" at node "${nodeName}"`;
|
||||
// When continue on fail is on the json wrapper is removed for some reason
|
||||
const runs = output.nodeData[nodeName];
|
||||
if (Array.isArray(runs)) {
|
||||
for (let runIndex = 0; runIndex < runs.length; runIndex++) {
|
||||
const run = runs[runIndex];
|
||||
if (!Array.isArray(run)) continue;
|
||||
for (let itemIndex = 0; itemIndex < run.length; itemIndex++) {
|
||||
const original = run[itemIndex];
|
||||
if (original && !original.json) {
|
||||
run[itemIndex] = { json: { ...original } };
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
expect(resultData, msg).toEqual(output.nodeData[nodeName]);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user