We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25daac8 commit 1093c27Copy full SHA for 1093c27
suites/try.json
@@ -55,7 +55,7 @@
55
"data": null
56
},
57
{
58
- "description": "Panic if the user is not an admin",
+ "description": "Panic based on an error emitted from an if",
59
"rule": { "try": [{ "if": [{"val": ["user", "admin"]}, true, { "error": "Not an admin" }] }] },
60
"data": { "user": { "admin": false } },
61
"error": true
0 commit comments