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()', () => {
|
|
|
|
it('should call the getTaxes method', done => {
|
2018-04-19 09:20:41 +00:00
|
|
|
app.models.Ticket.getTaxes(1)
|
2018-04-17 12:49:55 +00:00
|
|
|
.then(response => {
|
2018-06-22 12:52:11 +00:00
|
|
|
expect(response[0].tax).toEqual(17.45);
|
2018-04-17 12:49:55 +00:00
|
|
|
done();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|