You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'] }
.The text was updated successfully, but these errors were encountered: