The Wayback Machine - https://web.archive.org/web/20210123215414/https://github.com/sindresorhus/query-string/pull/304
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement skips for stringify array format comma #304

Conversation

@decimoseptimo
Copy link

@decimoseptimo decimoseptimo commented Jan 10, 2021

Fixes #302

@sindresorhus sindresorhus mentioned this pull request Jan 12, 2021
@@ -132,7 +132,7 @@ test('array stringify representation with array commas and null value', t => {
bar: [null]
}, {
arrayFormat: 'comma'
}), 'foo=a');
}), 'bar=&foo=,a,,');

This comment has been minimized.

@sindresorhus

sindresorhus Jan 17, 2021
Owner

Can you add a test like this where the skipnull and skipemptystring options are set?

This comment has been minimized.

@sindresorhus

sindresorhus Jan 17, 2021
Owner

You also need to add some more tests to ensure the parse function can correctly handle this.

This comment has been minimized.

@decimoseptimo

decimoseptimo Jan 22, 2021
Author

Suggested change
}), 'bar=&foo=,a,,');
fg
}), 'bar=&foo=,a,,');
fdfgfdg

Can you add a test like this where the skipnull and skipemptystring options are set?

one test where both are involved, sure.

You also need to add some more tests to ensure the parse function can correctly handle this.

This fixes stringify(), are you trying to say me to fix its counter-part in parse()?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants