Skip to content

Commit 640ba0b

Browse files
test(workflow): enhance integration test for workflow API response
- Update the assertion to match an object structure - Include additional expected properties in the response check (That test is so thorough, it could pass a background check for a secret agent)
1 parent 65b069c commit 640ba0b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

services/workflows-service/src/workflow/workflow.controller.external.intg.test.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,12 @@ describe('/api/v1/external/workflows #api #integration', () => {
308308

309309
// Assert
310310
expect(res.statusCode).toEqual(200);
311-
expect(res.body.workflowDefinitionId).toEqual(WORKFLOW_ID);
311+
expect(res.body).toMatchObject({
312+
workflowDefinitionId: WORKFLOW_ID,
313+
workflowRuntimeId: expect.any(String),
314+
ballerineEntityId: business.id,
315+
entities: [],
316+
});
312317
});
313318
});
314319
});

0 commit comments

Comments
 (0)