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

Function validFrame

scripts/integration/js-api.mjs:499–509  ·  view source on GitHub ↗
(frame)

Source from the content-addressed store, hash-verified

497}
498
499function validFrame(frame) {
500 return (
501 frame &&
502 Number.isFinite(frame.x) &&
503 Number.isFinite(frame.y) &&
504 Number.isFinite(frame.width) &&
505 Number.isFinite(frame.height) &&
506 frame.width > 0 &&
507 frame.height > 0
508 );
509}
510
511function buildFixtureApp() {
512 return buildCachedFixtureApp({

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected