12 lines
352 B
JavaScript
12 lines
352 B
JavaScript
const models = require('vn-loopback/server/server').models;
|
|
|
|
describe('ticketLog getChanges()', () => {
|
|
it('should return the changes in the sales of a ticket', async() => {
|
|
const ticketId = 1;
|
|
|
|
const changues = await models.TicketLog.getChanges({id: ticketId});
|
|
|
|
expect(changues).toContain(`cambia de 1 a 10`);
|
|
});
|
|
});
|