salix/services/loopback/common/methods/ticket/specs/getTaxes.spec.js

10 lines
278 B
JavaScript
Raw Normal View History

const app = require(`${servicesDir}/ticket/server/server`);
2018-04-17 12:49:55 +00:00
describe('ticket getTaxes()', () => {
it('should return the tax of a given ticket', async() => {
let result = await app.models.Ticket.getTaxes(1);
2018-09-11 13:09:15 +00:00
expect(result[0].tax).toEqual(9.29);
2018-04-17 12:49:55 +00:00
});
});