17 lines
435 B
JavaScript
17 lines
435 B
JavaScript
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 = 7;
|
|
|
|
const changues = await models.TicketLog.getChanges(ctx, ticketId);
|
|
|
|
expect(changues).toContain(`Change quantity`);
|
|
});
|
|
});
|