Commit acc2dc3
committed
fix(test): handle integer values in mock getBoolParam
The mock's getBoolParam only handled bool and string types. When the
client sends start=1 as a JSON integer it decodes as float64, falling
through to the default branch and returning false. Add float64 and int
cases so numeric 1/0 values correctly map to true/false.1 parent ceffe4f commit acc2dc3
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1539 | 1539 | | |
1540 | 1540 | | |
1541 | 1541 | | |
| 1542 | + | |
| 1543 | + | |
| 1544 | + | |
| 1545 | + | |
1542 | 1546 | | |
1543 | 1547 | | |
1544 | 1548 | | |
| |||
0 commit comments