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

Function validFrame

scripts/integration/cli.mjs:1734–1744  ·  view source on GitHub ↗
(frame)

Source from the content-addressed store, hash-verified

1732}
1733
1734function validFrame(frame) {
1735 return (
1736 frame &&
1737 Number.isFinite(frame.x) &&
1738 Number.isFinite(frame.y) &&
1739 Number.isFinite(frame.width) &&
1740 Number.isFinite(frame.height) &&
1741 frame.width > 0 &&
1742 frame.height > 0
1743 );
1744}
1745
1746function fixtureReady(snapshot) {
1747 return (

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected