const models = require('vn-loopback/server/server').models; describe('ticketLog getChanges()', () => { const ctx = {req: {}}; ctx.req.__ = value => { return value; }; it('should return the changes in the sales of a ticket', async() => { const ticketId = 16; const changues = await models.TicketLog.getChanges(ctx, ticketId); expect(changues).toContain(`Change quantity`); }); });