12 lines
362 B
JavaScript
12 lines
362 B
JavaScript
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();
|
|
});
|
|
});
|
|
});
|