Skip to content

Commit

Permalink
modify the test
Browse files Browse the repository at this point in the history
  • Loading branch information
ShireenMissi committed Nov 13, 2024
1 parent 1f42cca commit 4c09561
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/core/test/WorkflowExecute.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,11 +188,14 @@ describe('WorkflowExecute', () => {
if (nodeData.data === undefined) {
return null;
}
return nodeData.data.main[0];
return nodeData.data.main[0]!.map((entry) => {
// remove pairedItem from entry if it is an error output test
if (testData.description.includes('error_outputs')) delete entry.pairedItem;
return entry;
});
});

// used toMatchObject instead of toEqual to ignore paired items
expect(resultData).toMatchObject(testData.output.nodeData[nodeName]);
expect(resultData).toEqual(testData.output.nodeData[nodeName]);
}

// Check if other data has correct value
Expand Down

0 comments on commit 4c09561

Please sign in to comment.