If I use superagent and set query to { foo: undefined, bar: [], baz: false, quux: ['a', 'b'] }, superagent-mock generates a req.query object of { foo: 'undefined', bar: '', baz: 'false', quux: 'a,b' }. However, in reality my api receives a query object of { baz: 'false', quux: ['a', 'b'] }.
If I use superagent and set query to
{ foo: undefined, bar: [], baz: false, quux: ['a', 'b'] }
, superagent-mock generates a req.query object of{ foo: 'undefined', bar: '', baz: 'false', quux: 'a,b' }
. However, in reality my api receives a query object of{ baz: 'false', quux: ['a', 'b'] }
.Steps to reproduce:
{ foo: 'undefined', bar: '', baz: 'false', quux: 'a,b' }
is logged to console:req.query
, confirm it equals{ baz: 'false', quux: ['a', 'b'] }
.