Skip to content

Testerone won't accept POST Data that has objects in arrays. #11

@jeregrine

Description

@jeregrine

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions