14 lines
379 B
JavaScript
14 lines
379 B
JavaScript
const app = require(`${servicesDir}/ticket/server/server`);
|
|
|
|
describe('ticket getTotalVolume()', () => {
|
|
it('should return the total volume of a ticket', async() => {
|
|
let ticketFk = 1;
|
|
|
|
let expectedResult = 0.078;
|
|
|
|
let result = await app.models.Ticket.getTotalVolume(ticketFk);
|
|
|
|
expect(result.totalVolume).toEqual(expectedResult);
|
|
});
|
|
});
|