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

11 lines
270 B
JavaScript
Raw Normal View History

const app = require(`${servicesDir}/client/server/server`);
describe('client getDebt()', () => {
it('should return the client debt', async() => {
let result = await app.models.Client.getDebt(101);
2018-09-11 13:09:15 +00:00
expect(result.debt).toEqual(1048.76);
});
});