We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff905c0 commit c53f47dCopy full SHA for c53f47d
suites/control/and.json
@@ -42,6 +42,18 @@
42
"data": null,
43
"result": false
44
},
45
+ {
46
+ "description": "When all values are truthy, the last truthy value should be returned",
47
+ "rule": { "and": [1, 2, 3] },
48
+ "data": null,
49
+ "result": 3
50
+ },
51
52
+ "description": "When all values are truthy, the last truthy value should be returned (2)",
53
+ "rule": { "and": [true, 1, {}] },
54
55
+ "result": {}
56
57
{
58
"description": "And with a single falsey value should be return the falsy value",
59
"rule": { "and": [[]] },
0 commit comments