mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-17 13:08:32 +00:00
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:
@@ -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}),
|
||||
] {
|
||||
|
||||
Reference in New Issue
Block a user