adapted test to show now 6 sales person
This commit is contained in:
parent
b8e6a8d0b3
commit
84bc505937
|
@ -17,14 +17,14 @@ describe('Client activeSalesPerson', () => {
|
||||||
app.models.Client.activeSalesPerson(filter, callback);
|
app.models.Client.activeSalesPerson(filter, callback);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should call the activeSalesPerson() method with no limit and receive all 3 salesPersons', done => {
|
it('should call the activeSalesPerson() method with no limit and receive all 6 salesPersons', done => {
|
||||||
let filter = {
|
let filter = {
|
||||||
};
|
};
|
||||||
|
|
||||||
let callback = (error, result) => {
|
let callback = (error, result) => {
|
||||||
if (error) return catchErrors(done)(error);
|
if (error) return catchErrors(done)(error);
|
||||||
|
|
||||||
expect(result.length).toEqual(3);
|
expect(result.length).toEqual(6);
|
||||||
done();
|
done();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue