20 lines
466 B
JavaScript
20 lines
466 B
JavaScript
const getTaxes = require('../get-taxes');
|
|
const model = {
|
|
remoteMethod: () => {}
|
|
};
|
|
let Loopback = require('../../../test-helpers/loopback');
|
|
Loopback.init(model);
|
|
|
|
Loopback.rawSql(model);
|
|
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();
|
|
});
|
|
});
|
|
});
|