Optional
toleranceThe allowed tolerance for the aspect ratio comparison, expressed as a percentage.
This defines how much the actual aspect ratio can differ from the expected ratio while still passing the assertion.
For example, a tolerancePercent of 5 means the actual ratio can be within ±5% of the expected ratio.
If omitted, the default tolerance is 0
, requiring an exact match.
Options for the toHaveAspectRatio matcher.