From 6abd707a6db0345f075f5feae8980b54f7be72f0 Mon Sep 17 00:00:00 2001 From: Juan Ferrer Toribio Date: Mon, 21 Sep 2020 19:16:51 +0200 Subject: [PATCH] Tests fixed --- modules/client/back/methods/client/specs/consumption.spec.js | 2 +- modules/ticket/back/methods/ticket-request/specs/filter.spec.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/client/back/methods/client/specs/consumption.spec.js b/modules/client/back/methods/client/specs/consumption.spec.js index 30a0572b3c..f70c093707 100644 --- a/modules/client/back/methods/client/specs/consumption.spec.js +++ b/modules/client/back/methods/client/specs/consumption.spec.js @@ -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); diff --git a/modules/ticket/back/methods/ticket-request/specs/filter.spec.js b/modules/ticket/back/methods/ticket-request/specs/filter.spec.js index 175bf9c1a3..68d7601e42 100644 --- a/modules/ticket/back/methods/ticket-request/specs/filter.spec.js +++ b/modules/ticket/back/methods/ticket-request/specs/filter.spec.js @@ -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);