|
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).
spool-cart/test/integration/2-controllers/admin/ProductController.test.js
Lines 613 to 625 in 76cccd6
This test does not work in practice (not making association, returns empty array).