MCPcopy Index your code
hub / github.com/NativeScript/SimDeck / assertRoots

Function assertRoots

scripts/integration/android.mjs:909–913  ·  view source on GitHub ↗
(payload, label)

Source from the content-addressed store, hash-verified

907}
908
909function assertRoots(payload, label) {
910 assertJson(payload, label);
911 assert.ok(Array.isArray(payload.roots), `${label} missing roots array`);
912 assert.ok(payload.roots.length > 0, `${label} returned no roots`);
913}
914
915function centerOfFirstRoot(payload) {
916 const frame = payload?.roots?.[0]?.frame;

Callers 2

runCliSurfaceFunction · 0.70
runJsSurfaceFunction · 0.70

Calls 1

assertJsonFunction · 0.70

Tested by

no test coverage detected