If I have a test setup like this
goodTest=
Lat: '1.00'
Lng: '1.00'
zChange: '1.00'
data=
data:
data: [goodTest]
User: "tester"
test
.post '/points', data, (res) ->
assert.equal res.statusCode, 200
assert.equal JSON.parse(res.body)['status'], 'success'
My web service gets post data as follows
{ data: [""], User: 'tester' }
When I was expecting an array of JSON Objects. If I stringify the objects it works but then I need to parse the string manually.