2020-03-26 18:10:09 +00:00
|
|
|
const app = require('vn-loopback/server/server');
|
|
|
|
|
2021-11-25 10:44:27 +00:00
|
|
|
// #3400 analizar que hacer con rutas de back colletion
|
2021-11-24 12:02:58 +00:00
|
|
|
xdescribe('newCollection()', () => {
|
2020-03-26 18:10:09 +00:00
|
|
|
it('return a new collection', async() => {
|
2021-06-23 11:24:23 +00:00
|
|
|
let ctx = {req: {accessToken: {userId: 1106}}};
|
2020-03-30 12:28:29 +00:00
|
|
|
let response = await app.models.Collection.newCollection(ctx, 1, 1, 1);
|
2020-03-26 18:10:09 +00:00
|
|
|
|
|
|
|
expect(response.length).toBeGreaterThan(0);
|
2021-09-01 09:48:21 +00:00
|
|
|
expect(response[0].ticketFk).toEqual(2);
|
2020-03-26 18:10:09 +00:00
|
|
|
});
|
|
|
|
});
|