salix/services/loopback/common/methods/client/specs/getAverageInvoiced.spec.js

12 lines
362 B
JavaScript
Raw Normal View History

const app = require(`${servicesDir}/client/server/server`);
describe('client getAverageInvoiced()', () => {
it('should call the getAverageInvoiced method', done => {
app.models.Client.getAverageInvoiced(101)
.then(response => {
expect(response.invoiced).toEqual(1500);
done();
});
});
});