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 changes = await models.TicketLog.getChanges(ctx, ticketId); expect(changes).toContain(`Change quantity`); }); });