test fixed
This commit is contained in:
parent
fbc84f48a1
commit
dd7ded018b
|
@ -2,7 +2,7 @@ const app = require('vn-loopback/server/server');
|
||||||
|
|
||||||
describe('ticket filter()', () => {
|
describe('ticket filter()', () => {
|
||||||
it('should call the filter method', async() => {
|
it('should call the filter method', async() => {
|
||||||
let ctx = {req: {accessToken: {userId: 9}}};
|
let ctx = {req: {accessToken: {userId: 9}}, args: {}};
|
||||||
|
|
||||||
let filter = {order: 'shipped DESC'};
|
let filter = {order: 'shipped DESC'};
|
||||||
let result = await app.models.Ticket.filter(ctx, filter);
|
let result = await app.models.Ticket.filter(ctx, filter);
|
||||||
|
|
Loading…
Reference in New Issue