MCPcopy Create free account
hub / github.com/activejs/activejs / randomUnit

Function randomUnit

packages/core/src/tests/utils.ts:433–436  ·  view source on GitHub ↗
(config?: UnitConfig<any>)

Source from the content-addressed store, hash-verified

431}
432
433export function randomUnit(config?: UnitConfig<any>) {
434 const unitCtor = randomUnitCtor();
435 return new unitCtor(config);
436}
437
438export function randomClusterItems(nestingLvl = 2, maxItems = 5): ClusterItems {
439 --nestingLvl;

Callers 3

units.spec.tsFile · 0.90
cluster.spec.tsFile · 0.90
randomClusterItemsFunction · 0.85

Calls 1

randomUnitCtorFunction · 0.85

Tested by

no test coverage detected