refs #6531 feat:back to show last tickets

This commit is contained in:
Sergio De la torre 2024-02-08 12:48:29 +01:00
parent b42c287709
commit d13cacae8e
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@ const models = require('vn-loopback/server/server').models;
describe('ticket getCollection()', () => {
it('should return a list of collections', async() => {
let ctx = {req: {accessToken: {userId: 18}}};
let ctx = {req: {accessToken: {userId: 1107}}};
let response = await models.Collection.getCollection(ctx);
expect(response.length).toBeGreaterThan(0);

View File

@ -1,7 +1,7 @@
const {models} = require('vn-loopback/server/server');
describe('getLastTicketsByWorker()', () => {
fit('return list of last tickets which user has modified', async() => {
it('return list of last tickets which user has modified', async() => {
let ctx = {req: {accessToken: {userId: 100}}};
let response = await models.Ticket.getLastTicketsByWorker(ctx);