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);
expect(result[0].tax).toEqual(7.44);
2018-04-17 12:49:55 +00:00
});
});