@@ -134,8 +134,7 @@ test('stringify()', function (t) {
134
134
t . test ( 'stringifies a nested array value' , function ( st ) {
135
135
st . equal ( qs . stringify ( { a : { b : [ 'c' , 'd' ] } } , { encodeValuesOnly : true , arrayFormat : 'indices' } ) , 'a[b][0]=c&a[b][1]=d' ) ;
136
136
st . equal ( qs . stringify ( { a : { b : [ 'c' , 'd' ] } } , { encodeValuesOnly : true , arrayFormat : 'brackets' } ) , 'a[b][]=c&a[b][]=d' ) ;
137
- st . equal ( qs . stringify ( { a : { b : [ 'c' , 'd' ] } } , { encodeValuesOnly : true , arrayFormat : 'comma' } ) , 'a[b]=c%2Cd' ) ;
138
- st . equal ( qs . stringify ( { a : { b : [ 'c' , 'd' ] } } , { encodeValuesOnly : true , arrayFormat : 'comma' } ) , 'a[b]=c,d' , '(pending issue #378)' , { skip : true } ) ;
137
+ st . equal ( qs . stringify ( { a : { b : [ 'c' , 'd' ] } } , { encodeValuesOnly : true , arrayFormat : 'comma' } ) , 'a[b]=c,d' ) ;
139
138
st . equal ( qs . stringify ( { a : { b : [ 'c' , 'd' ] } } , { encodeValuesOnly : true } ) , 'a[b][0]=c&a[b][1]=d' ) ;
140
139
st . end ( ) ;
141
140
} ) ;
@@ -157,22 +156,13 @@ test('stringify()', function (t) {
157
156
'a.b[]=c&a.b[]=d' ,
158
157
'brackets: stringifies with dots + brackets'
159
158
) ;
160
- st . equal (
161
- qs . stringify (
162
- { a : { b : [ 'c' , 'd' ] } } ,
163
- { allowDots : true , encodeValuesOnly : true , arrayFormat : 'comma' }
164
- ) ,
165
- 'a.b=c%2Cd' ,
166
- 'comma: stringifies with dots + comma'
167
- ) ;
168
159
st . equal (
169
160
qs . stringify (
170
161
{ a : { b : [ 'c' , 'd' ] } } ,
171
162
{ allowDots : true , encodeValuesOnly : true , arrayFormat : 'comma' }
172
163
) ,
173
164
'a.b=c,d' ,
174
- 'comma: stringifies with dots + comma (pending issue #378)' ,
175
- { skip : true }
165
+ 'comma: stringifies with dots + comma'
176
166
) ;
177
167
st . equal (
178
168
qs . stringify (
@@ -237,8 +227,8 @@ test('stringify()', function (t) {
237
227
st . equal (
238
228
qs . stringify ( { a : [ { b : 1 } , 2 , 3 ] } , { encodeValuesOnly : true , arrayFormat : 'comma' } ) ,
239
229
'???' ,
240
- 'brackets => brackets (pending issue #378) ' ,
241
- { skip : true }
230
+ 'brackets => brackets' ,
231
+ { skip : 'TODO: figure out what this should do' }
242
232
) ;
243
233
st . equal (
244
234
qs . stringify ( { a : [ { b : 1 } , 2 , 3 ] } , { encodeValuesOnly : true } ) ,
0 commit comments