(workflow: any, expectedCount: number)
| 93 | * ``` |
| 94 | */ |
| 95 | export function expectBlockCount(workflow: any, expectedCount: number): void { |
| 96 | const actualCount = Object.keys(workflow.blocks).length |
| 97 | expect(actualCount, `Workflow should have ${expectedCount} blocks`).toBe(expectedCount) |
| 98 | } |
| 99 | |
| 100 | /** |
| 101 | * Asserts that a workflow has a specific number of edges. |