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

12 lines
328 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 call the getTaxes method', done => {
app.models.Ticket.getTaxes(1)
2018-04-17 12:49:55 +00:00
.then(response => {
expect(response[0].tax).toEqual(6.05);
2018-04-17 12:49:55 +00:00
done();
});
});
});