Magic Wand: test that magicWand.set refuses a reset that is not true, false or null

The rejection test now gives `reset` a string and checks that the call returns an error and leaves the settings unchanged.
This commit is contained in:
dotCooCoo
2026-11-16 06:10:21 -08:00
parent 8a47799f17
commit 2a464df744
+1
View File
@@ -382,6 +382,7 @@ mod tests {
json!({"fillColor": "yes"}),
json!({"fillTolerance": null}),
json!({"strokeColor": null}),
json!({"reset": "yes", "fillColor": false}),
json!({"reset": true, "fillTolerance": 101}),
json!({"fillColor": false, "strokeTolerance": 101}),
] {