This commit is contained in:
parent
842f88b8c3
commit
d82f9b2cd6
|
@ -23,7 +23,7 @@ describe('item getBalance()', () => {
|
|||
date: null
|
||||
}
|
||||
};
|
||||
const results = await models.Item.getBalance(ctx, filter, options);
|
||||
const results = await models.Item.getBalance(ctx, filter, true, options);
|
||||
|
||||
const result = results.find(element => element.clientType == 'loses');
|
||||
|
||||
|
@ -57,8 +57,8 @@ describe('item getBalance()', () => {
|
|||
}
|
||||
};
|
||||
|
||||
const firstItemBalance = await models.Item.getBalance(ctx, firstFilter, options);
|
||||
const secondItemBalance = await models.Item.getBalance(ctx, secondFilter, options);
|
||||
const firstItemBalance = await models.Item.getBalance(ctx, firstFilter, true, options);
|
||||
const secondItemBalance = await models.Item.getBalance(ctx, secondFilter, true, options);
|
||||
|
||||
expect(firstItemBalance[9].claimFk).toEqual(null);
|
||||
expect(secondItemBalance[7].claimFk).toEqual(1);
|
||||
|
|
Loading…
Reference in New Issue