salix/services/loopback/common/methods/ticket/specs/get-taxes.spec.js

12 lines
328 B
JavaScript

const app = require(`${servicesDir}/ticket/server/server`);
describe('ticket getTaxes()', () => {
it('should call the getTaxes method', done => {
app.models.Ticket.getTaxes(1)
.then(response => {
expect(response[0].tax).toEqual(6.05);
done();
});
});
});