chore: refs #7524 fix test
gitea/salix/pipeline/pr-master This commit looks good Details

This commit is contained in:
Jorge Penadés 2024-09-04 14:55:59 +02:00
parent 842f88b8c3
commit d82f9b2cd6
1 changed files with 3 additions and 3 deletions

View File

@ -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);