Unit test fix
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Joan Sanchez 2021-05-13 08:57:49 +02:00
parent e6e91ced99
commit af49a66911
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ const app = require('vn-loopback/server/server');
describe('SalesMonitor ordersFilter()', () => { describe('SalesMonitor ordersFilter()', () => {
it('should return the orders activity', async() => { it('should return the orders activity', async() => {
const ctx = {req: {accessToken: {userId: 18}}, args: {}}; 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); const result = await app.models.SalesMonitor.ordersFilter(ctx, filter);
expect(result.length).toEqual(12); expect(result.length).toEqual(12);