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

10 lines
278 B
JavaScript

const app = require(`${servicesDir}/ticket/server/server`);
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);
});
});