@@ -99,8 +99,7 @@ test('stringify()', function (t) {
99
99
t . test ( 'stringifies a nested array value' , function ( st ) {
100
100
st . equal ( qs . stringify ( { a : { b : [ 'c' , 'd' ] } } , { encodeValuesOnly : true , arrayFormat : 'indices' } ) , 'a[b][0]=c&a[b][1]=d' ) ;
101
101
st . equal ( qs . stringify ( { a : { b : [ 'c' , 'd' ] } } , { encodeValuesOnly : true , arrayFormat : 'brackets' } ) , 'a[b][]=c&a[b][]=d' ) ;
102
- st . equal ( qs . stringify ( { a : { b : [ 'c' , 'd' ] } } , { encodeValuesOnly : true , arrayFormat : 'comma' } ) , 'a[b]=c%2Cd' ) ;
103
- st . equal ( qs . stringify ( { a : { b : [ 'c' , 'd' ] } } , { encodeValuesOnly : true , arrayFormat : 'comma' } ) , 'a[b]=c,d' , '(pending issue #378)' , { skip : true } ) ;
102
+ st . equal ( qs . stringify ( { a : { b : [ 'c' , 'd' ] } } , { encodeValuesOnly : true , arrayFormat : 'comma' } ) , 'a[b]=c,d' ) ;
104
103
st . equal ( qs . stringify ( { a : { b : [ 'c' , 'd' ] } } , { encodeValuesOnly : true } ) , 'a[b][0]=c&a[b][1]=d' ) ;
105
104
st . end ( ) ;
106
105
} ) ;
@@ -122,22 +121,13 @@ test('stringify()', function (t) {
122
121
'a.b[]=c&a.b[]=d' ,
123
122
'brackets: stringifies with dots + brackets'
124
123
) ;
125
- st . equal (
126
- qs . stringify (
127
- { a : { b : [ 'c' , 'd' ] } } ,
128
- { allowDots : true , encodeValuesOnly : true , arrayFormat : 'comma' }
129
- ) ,
130
- 'a.b=c%2Cd' ,
131
- 'comma: stringifies with dots + comma'
132
- ) ;
133
124
st . equal (
134
125
qs . stringify (
135
126
{ a : { b : [ 'c' , 'd' ] } } ,
136
127
{ allowDots : true , encodeValuesOnly : true , arrayFormat : 'comma' }
137
128
) ,
138
129
'a.b=c,d' ,
139
- 'comma: stringifies with dots + comma (pending issue #378)' ,
140
- { skip : true }
130
+ 'comma: stringifies with dots + comma'
141
131
) ;
142
132
st . equal (
143
133
qs . stringify (
@@ -202,8 +192,8 @@ test('stringify()', function (t) {
202
192
st . equal (
203
193
qs . stringify ( { a : [ { b : 1 } , 2 , 3 ] } , { encodeValuesOnly : true , arrayFormat : 'comma' } ) ,
204
194
'???' ,
205
- 'brackets => brackets (pending issue #378) ' ,
206
- { skip : true }
195
+ 'brackets => brackets' ,
196
+ { skip : 'TODO: figure out what this should do' }
207
197
) ;
208
198
st . equal (
209
199
qs . stringify ( { a : [ { b : 1 } , 2 , 3 ] } , { encodeValuesOnly : true } ) ,
0 commit comments