2018-08-13 11:11:37 +00:00
|
|
|
const app = require(`${servicesDir}/client/server/server`);
|
2018-01-26 10:23:53 +00:00
|
|
|
|
|
|
|
describe('Client activeSalesPerson', () => {
|
2018-04-03 17:29:01 +00:00
|
|
|
it('should call the activeSalesPerson() method with limit of 1', async() => {
|
2018-01-26 10:23:53 +00:00
|
|
|
let filter = {
|
|
|
|
limit: 1
|
|
|
|
};
|
2018-04-03 17:29:01 +00:00
|
|
|
let result = await app.models.Client.activeSalesPerson(filter);
|
2018-01-26 10:23:53 +00:00
|
|
|
|
2018-04-03 17:29:01 +00:00
|
|
|
expect(result.length).toEqual(1);
|
2018-01-26 10:23:53 +00:00
|
|
|
});
|
|
|
|
});
|