Unit test fix
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
e6e91ced99
commit
af49a66911
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue