From af49a66911297fd2cd5c773b8dd753858aee2eac Mon Sep 17 00:00:00 2001 From: joan Date: Thu, 13 May 2021 08:57:49 +0200 Subject: [PATCH] Unit test fix --- .../back/methods/sales-monitor/specs/ordersFilter.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/monitor/back/methods/sales-monitor/specs/ordersFilter.spec.js b/modules/monitor/back/methods/sales-monitor/specs/ordersFilter.spec.js index df2d9ef29..26894f25d 100644 --- a/modules/monitor/back/methods/sales-monitor/specs/ordersFilter.spec.js +++ b/modules/monitor/back/methods/sales-monitor/specs/ordersFilter.spec.js @@ -3,7 +3,7 @@ const app = require('vn-loopback/server/server'); describe('SalesMonitor ordersFilter()', () => { it('should return the orders activity', async() => { const ctx = {req: {accessToken: {userId: 18}}, args: {}}; - const filter = {order: 'dated DESC'}; + const filter = {order: 'date_make DESC'}; const result = await app.models.SalesMonitor.ordersFilter(ctx, filter); expect(result.length).toEqual(12);