2018-08-14 12:32:27 +00:00
|
|
|
const app = require(`${servicesDir}/ticket/server/server`);
|
|
|
|
|
|
|
|
describe('ticket threeLastActive()', () => {
|
|
|
|
it('should return the last three active tickets', async() => {
|
|
|
|
let params = {clientFk: 101, ticketFk: 1};
|
|
|
|
let result = await app.models.Ticket.threeLastActive(params);
|
|
|
|
|
2018-08-17 07:56:50 +00:00
|
|
|
expect(result.length).toEqual(3);
|
2018-08-14 12:32:27 +00:00
|
|
|
});
|
|
|
|
});
|