const app = require('vn-loopback/server/server'); // #3400 analizar que hacer con rutas de back colletion xdescribe('newCollection()', () => { it('return a new collection', async() => { let ctx = {req: {accessToken: {userId: 1106}}}; let response = await app.models.Collection.newCollection(ctx, 1, 1, 1); expect(response.length).toBeGreaterThan(0); expect(response[0].ticketFk).toEqual(2); }); });