refs #6531 feat:back to show last tickets
This commit is contained in:
parent
b42c287709
commit
d13cacae8e
|
@ -2,7 +2,7 @@ const models = require('vn-loopback/server/server').models;
|
|||
|
||||
describe('ticket getCollection()', () => {
|
||||
it('should return a list of collections', async() => {
|
||||
let ctx = {req: {accessToken: {userId: 18}}};
|
||||
let ctx = {req: {accessToken: {userId: 1107}}};
|
||||
let response = await models.Collection.getCollection(ctx);
|
||||
|
||||
expect(response.length).toBeGreaterThan(0);
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
const {models} = require('vn-loopback/server/server');
|
||||
|
||||
describe('getLastTicketsByWorker()', () => {
|
||||
fit('return list of last tickets which user has modified', async() => {
|
||||
it('return list of last tickets which user has modified', async() => {
|
||||
let ctx = {req: {accessToken: {userId: 100}}};
|
||||
let response = await models.Ticket.getLastTicketsByWorker(ctx);
|
||||
|
||||
|
|
Loading…
Reference in New Issue