13 lines
370 B
JavaScript
13 lines
370 B
JavaScript
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);
|
|
});
|
|
});
|