const app = require('../../../../../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); }); });