Commit 1f4c06c
committed
Add tests for invalid height payloads
Extend useAutoHeight tests to cover invalid payload cases: a prefixed but non-numeric payload ('__RN_SIZED_WV__:not-a-number') to exercise the isFinite branch, and a direct negative number (-10) to exercise the numericValue <= 0 branch. Both assertions verify that requestAnimationFrame is not called and the height remains unchanged, preventing regressions for malformed or out-of-range payloads.1 parent 5a7c875 commit 1f4c06c
1 file changed
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
153 | 170 | | |
154 | 171 | | |
155 | 172 | | |
| |||
0 commit comments