const app = require(`${servicesDir}/ticket/server/server`); describe('ticket getVolume()', () => { it('should call the getVolume method', done => { let ticketFk = 1; app.models.Ticket.getVolume(ticketFk) .then(response => { expect(response[0][0].m3_total).toEqual(0.008); done(); }); }); });