File tree Expand file tree Collapse file tree 4 files changed +46
-2
lines changed Expand file tree Collapse file tree 4 files changed +46
-2
lines changed Original file line number Diff line number Diff line change 40
40
},
41
41
"tests" : [
42
42
{
43
- "description" : " no additional items present" ,
43
+ "description" : " fewer number of items present" ,
44
+ "data" : [ 1 , 2 ],
45
+ "valid" : true
46
+ },
47
+ {
48
+ "description" : " equal number of items present" ,
44
49
"data" : [ 1 , 2 , 3 ],
45
50
"valid" : true
46
51
},
Original file line number Diff line number Diff line change 19
19
"description" : " ignores non-arrays" ,
20
20
"data" : {"foo" : " bar" },
21
21
"valid" : true
22
+ },
23
+ {
24
+ "description" : " JavaScript pseudo-array is valid" ,
25
+ "data" : {
26
+ "0" : " invalid" ,
27
+ "length" : 1
28
+ },
29
+ "valid" : true
22
30
}
23
31
]
24
32
},
55
63
"description" : " empty array" ,
56
64
"data" : [ ],
57
65
"valid" : true
66
+ },
67
+ {
68
+ "description" : " JavaScript pseudo-array is valid" ,
69
+ "data" : {
70
+ "0" : " invalid" ,
71
+ "1" : " valid" ,
72
+ "length" : 2
73
+ },
74
+ "valid" : true
58
75
}
59
76
]
60
77
}
Original file line number Diff line number Diff line change 40
40
},
41
41
"tests" : [
42
42
{
43
- "description" : " no additional items present" ,
43
+ "description" : " fewer number of items present" ,
44
+ "data" : [ 1 , 2 ],
45
+ "valid" : true
46
+ },
47
+ {
48
+ "description" : " equal number of items present" ,
44
49
"data" : [ 1 , 2 , 3 ],
45
50
"valid" : true
46
51
},
Original file line number Diff line number Diff line change 19
19
"description" : " ignores non-arrays" ,
20
20
"data" : {"foo" : " bar" },
21
21
"valid" : true
22
+ },
23
+ {
24
+ "description" : " JavaScript pseudo-array is valid" ,
25
+ "data" : {
26
+ "0" : " invalid" ,
27
+ "length" : 1
28
+ },
29
+ "valid" : true
22
30
}
23
31
]
24
32
},
55
63
"description" : " empty array" ,
56
64
"data" : [ ],
57
65
"valid" : true
66
+ },
67
+ {
68
+ "description" : " JavaScript pseudo-array is valid" ,
69
+ "data" : {
70
+ "0" : " invalid" ,
71
+ "1" : " valid" ,
72
+ "length" : 2
73
+ },
74
+ "valid" : true
58
75
}
59
76
]
60
77
}
You can’t perform that action at this time.
0 commit comments