2018-08-21 07:35:14 +00:00
|
|
|
const app = require(`${servicesDir}/ticket/server/server`);
|
|
|
|
|
|
|
|
describe('ticket getTotalVolume()', () => {
|
|
|
|
it('should return the total volume of a ticket', async() => {
|
|
|
|
let ticketFk = 1;
|
|
|
|
|
2018-09-11 13:09:15 +00:00
|
|
|
let expectedResult = 0.078;
|
2018-08-21 07:35:14 +00:00
|
|
|
|
|
|
|
let result = await app.models.Ticket.getTotalVolume(ticketFk);
|
|
|
|
|
|
|
|
expect(result.totalVolume).toEqual(expectedResult);
|
|
|
|
});
|
|
|
|
});
|