mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
✔️ Fix tests
This commit is contained in:
@@ -587,11 +587,14 @@ describe('WorkflowExecute', () => {
|
||||
|
||||
const workflowExecute = new WorkflowExecute(additionalData, executionMode);
|
||||
|
||||
const executionId = await workflowExecute.run(workflowInstance, undefined);
|
||||
expect(executionId).toBeDefined();
|
||||
const executionData = await workflowExecute.run(workflowInstance, undefined);
|
||||
|
||||
const result = await waitPromise.promise();
|
||||
|
||||
// Check if the data from WorkflowExecute is identical to data received
|
||||
// by the webhooks
|
||||
expect(executionData).toEqual(result);
|
||||
|
||||
// Check if the output data of the nodes is correct
|
||||
for (const nodeName of Object.keys(testData.output.nodeData)) {
|
||||
if (result.data.resultData.runData[nodeName] === undefined) {
|
||||
|
||||
Reference in New Issue
Block a user