MCPcopy Index your code
hub / github.com/simstudioai/sim / expectBlockCount

Function expectBlockCount

packages/testing/src/assertions/workflow.assertions.ts:95–98  ·  view source on GitHub ↗
(workflow: any, expectedCount: number)

Source from the content-addressed store, hash-verified

93 * ```
94 */
95export 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.

Callers 1

store.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected