Skip to content

Adding multiple associations does not work #56

@wbhob

Description

@wbhob

it('should add association to product', (done) => {
adminUser
.post(`/product/${createdProductID}/associations`)
.send(qs.stringify({
associations: [1, 2]
}))
.expect(200)
.end((err, res) => {
// console.log('BROKE ASSOC', res.body)
assert.ok(res.body.length)
done(err)
})
})

This test does not work in practice (not making association, returns empty array).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions