const app = require(`${servicesDir}/ticket/server/server`); describe('ticket getTaxes()', () => { it('should call the getTaxes method', async() => { await app.models.Ticket.getTaxes(1) .then(response => { expect(response[0].tax).toEqual(20.95); }); }); });