11 lines
349 B
JavaScript
11 lines
349 B
JavaScript
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);
|
|
|
|
expect(result.length).toEqual(3);
|
|
});
|
|
});
|