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