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

11 lines
386 B
JavaScript
Raw Normal View History

2018-09-28 13:00:12 +00:00
const app = require(`${servicesDir}/client/server/server`);
describe('Client getTransations', () => {
it('should call getTransations() method to receive a list of Web Payments from Bruce Wayne', async() => {
let filter = {where: {clientFk: 101}};
let result = await app.models.Client.getTransactions(filter);
expect(result[1].id).toBeTruthy();
});
});