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); }); });