Tests fixed
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Juan Ferrer 2020-09-21 19:16:51 +02:00
parent 81de97c071
commit 6abd707a6d
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ describe('client consumption() filter', () => {
where: {
clientFk: 101
},
order: 'itemTypeFk, itemName, itemSize'
order: 'itemFk'
};
const result = await app.models.Client.consumption(ctx, filter);

View File

@ -66,7 +66,7 @@ describe('ticket-request filter()', () => {
it('should return the ticket request matching the warehouse ID', async() => {
let ctx = {req: {accessToken: {userId: 9}}, args: {warehouse: 1}};
let result = await app.models.TicketRequest.filter(ctx);
let result = await app.models.TicketRequest.filter(ctx, {order: 'id'});
let requestId = result[0].id;
expect(requestId).toEqual(3);