2018-08-13 11:11:37 +00:00
|
|
|
const app = require(`${servicesDir}/client/server/server`);
|
2018-03-09 15:44:18 +00:00
|
|
|
|
|
|
|
describe('client getDebt()', () => {
|
2018-08-13 11:11:37 +00:00
|
|
|
it('should return the client debt', async() => {
|
|
|
|
let result = await app.models.Client.getDebt(101);
|
|
|
|
|
2018-09-04 12:52:38 +00:00
|
|
|
expect(result.debt).toEqual(1342.66);
|
2018-03-09 15:44:18 +00:00
|
|
|
});
|
|
|
|
});
|
|
|
|
|