MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / assertRoots

Function assertRoots

scripts/integration/cli.mjs:1988–1993  ·  view source on GitHub ↗
(payload, label)

Source from the content-addressed store, hash-verified

1986}
1987
1988function assertRoots(payload, label) {
1989 assertJson(payload, label);
1990 if (!Array.isArray(payload.roots) || payload.roots.length === 0) {
1991 throw new Error(`${label} returned no roots: ${JSON.stringify(payload)}`);
1992 }
1993}
1994
1995function countAccessibilityNodes(snapshot) {
1996 const roots = Array.isArray(snapshot?.roots) ? snapshot.roots : [];

Callers 2

mainFunction · 0.70
runRestControlsFunction · 0.70

Calls 1

assertJsonFunction · 0.70

Tested by

no test coverage detected