Skip to content

Commit 8aa4999

Browse files
committed
[test] Increase code coverage
1 parent 6b651ba commit 8aa4999

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

test.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ describe('querystringify', function () {
5353
it('transforms `null` into nothing', function () {
5454
assume(qs.stringify({ foo: null })).equals('foo=');
5555
});
56+
57+
if (typeof Symbol !== 'undefined') {
58+
it('does not throw on invalid input', function () {
59+
assume(qs.stringify({ foo: Symbol('foo') })).equals('');
60+
});
61+
}
5662
});
5763

5864
describe('#parse', function () {

0 commit comments

Comments
 (0)