chaijs / chai-http

HTTP Response assertions for the Chai Assertion Library.
http://chaijs.com/plugins/chai-http
634 stars 113 forks source link

What are the valid data types of `.field()` #247

Closed O-Osahon closed 5 years ago

O-Osahon commented 5 years ago

It seems form fields only take strings. .field('price', 200000000000) seems not to work. Is this normal?

austince commented 5 years ago

The field method is from the underlying superagent request. Their documentation details the proper values, but yes, I believe numbers are not supported.