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

12 lines
329 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(20.95);
done();
});
});
});