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

11 lines
268 B
JavaScript

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);
expect(result.debt).toEqual(880.1);
});
});