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

20 lines
466 B
JavaScript
Raw Normal View History

2018-04-17 12:49:55 +00:00
const getTaxes = require('../get-taxes');
const model = {
remoteMethod: () => {}
};
let Loopback = require('../../../test-helpers/loopback');
Loopback.init(model);
2018-04-17 12:49:55 +00:00
Loopback.rawSql(model);
2018-04-17 12:49:55 +00:00
getTaxes(model);
describe('ticket getTaxes()', () => {
it('should call the getTaxes method', done => {
model.getTaxes(1)
.then(response => {
expect(response[0].tax).toEqual(1.05);
done();
});
});
});