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 f51491f commit 7185d46Copy full SHA for 7185d46
test.js
@@ -18,7 +18,16 @@ describe('query-stringifier', function () {
18
var queryString = qs.stringify(obj);
19
20
expect(queryString).to.equal('food=pizza&bar=chocolate');
21
- })
+ });
22
+ it('a value can be an array that that gets to a csv', function() {
23
+ var test3 = {
24
+ 'column': ['a', 'b', 'c'],
25
+ 'anotherCol': 2
26
+ };
27
+ var queryString = qs.stringify(test3);
28
+
29
+ expect(queryString).to.equal('column=a,b,c&anotherCol=2');
30
31
});
32
33
describe('#parse', function () {
0 commit comments