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

13 lines
370 B
JavaScript
Raw Normal View History

const app = require(`${servicesDir}/client/server/server`);
describe('Client activeSalesPerson', () => {
it('should call the activeSalesPerson() method with limit of 1', async() => {
let filter = {
limit: 1
};
let result = await app.models.Client.activeSalesPerson(filter);
expect(result.length).toEqual(1);
});
});