2018-04-19 09:20:41 +00:00
|
|
|
const app = require(`${servicesDir}/ticket/server/server`);
|
2018-04-17 12:49:55 +00:00
|
|
|
|
|
|
|
describe('ticket getTaxes()', () => {
|
2018-08-14 12:32:27 +00:00
|
|
|
it('should return the tax of a given ticket', async() => {
|
|
|
|
let result = await app.models.Ticket.getTaxes(1);
|
|
|
|
|
2018-09-21 13:01:51 +00:00
|
|
|
expect(result[0].tax).toEqual(7.44);
|
2018-04-17 12:49:55 +00:00
|
|
|
});
|
|
|
|
});
|