✔️ Fix tests

This commit is contained in:
Jan Oberhauser
2019-08-09 12:19:28 +02:00
parent 14f3d2f9c7
commit 281e943dcc
5 changed files with 274 additions and 247 deletions

View File

@@ -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) {